Path: utzoo!attcan!uunet!husc6!psuvax1!burdvax!bbking!rmarks From: rmarks@KSP.Unisys.COM (Richard Marks) Newsgroups: comp.sys.ibm.pc Subject: Re: NumLock and/or CapsLock Disabling Message-ID: <605@bbking.KSP.Unisys.COM> Date: 21 May 88 18:57:27 GMT References: <5453@umn-cs.cs.umn.edu> <686@cernvax.UUCP> Organization: Unisys/Knowledge Systems Organization, Frazer, PA Lines: 22 In article <686@cernvax.UUCP> emanuel@cernvax.UUCP () writes: >Do you know by chance how to disable (or enable) by software the >NumLock and CapsLock keys? > >Is there an 'easy' way to do EXACLTY that (i.e. without trying to go >AROUND the problem)? There is no way to just tell the keyboard to ignore these keys. As far as the keyboard is concerned, they are just another key, the BIOS gives the key meaning. One way to surpress these keys is to write a small TSR routine that sits on INT 9 (the interrupt the keyboard generates whenever a key is pressed or depressed). This routine would pass control down to the next levels in the INT 9 chain via a routine call (not a branch). Then when control perculates back up via the lower level IRETs, you would clear the keyboard status word bits at 40:17 for the NumLock and CapLock. Richard Marks rmarks@KSP.unisys.COM