Article View: comp.os.msdos.programmer
Article #604Re: turning off NUMLOCK
From: Leonard Erickson
Date: Tue, 07 Apr 1992 23:57
Date: Tue, 07 Apr 1992 23:57
29 lines
1627 bytes
1627 bytes
jaf@jaflrn.UUCP (Jon Freivald) writes: >mcalame@servant.West.Sun.COM (Matthew Calame - SE Sacramento) writes: >> Does anyone know how a program can turn off the NUMLOCK key/light on a PC? >I've got a program that turns num/scroll/caps on/off from the command >line. If you haven't received anything else, give a holler & I'll >uuencode it and e-mail it. Warning! *Any* code to do this will only work on machines with AT compatible BIOS code. XT BIOS code doesn't pass the staus change back to the keyboard. In fact, the XT keyboard interface has no way to pass the status back! I mention this from sad experience. Unless your code can *guarantee* that it is running on an AT or better, don't try to change CapsLock or NumLock. Doing so will screw up the keyboard state. And be aware that there are some machines out there that support enhanched keyboards in the BIOS, but *don't* support the status change (Tandy comes to mind...) -- Leonard Erickson leonard@qiclab.scn.rain.com CIS: [70465,203] 70465.203@compuserve.com FIDO: 1:105/56 Leonard.Erickson@f56.n105.z1.fidonet.org (The CIS address is checked daily. The others infrequently)
Technical Details
Message-ID:
<1992Apr7.235744.20749@qiclab.scn.rain.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!psgrain!qiclab!leonardReferences:
<kt1friINN6ls@west.west.sun.com> <HLsBiB1w164w@jaflrn.UUCP>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!psgrain!qiclab!leonard From: leonard@qiclab.scn.rain.com (Leonard Erickson) Subject: Re: turning off NUMLOCK Message-ID: <1992Apr7.235744.20749@qiclab.scn.rain.com> Reply-To: 70465.203@compuserve.com Organization: SCN Research/Qic Laboratories of Tigard, Oregon. References: <kt1friINN6ls@west.west.sun.com> <HLsBiB1w164w@jaflrn.UUCP> Date: Tue, 7 Apr 1992 23:57:44 GMT