Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!mcsun!cernvax!cui!ugun2b!ugsc2a!fisher From: fisher@sc2a.unige.ch (Markus Fischer) Newsgroups: comp.sys.ibm.pc Subject: Re: NUMLOCK Message-ID: <138@sc2a.unige.ch> Date: 14 Nov 89 08:50:53 GMT References: <523@darth.PGH.PA.US> Organization: University of Geneva, Switzerland Lines: 37 In article <523@darth.PGH.PA.US>, liber@darth.PGH.PA.US (Eric Liber) writes: > The numlock, scroll lock and caps lock lights and system status are recorded > and set by the byte at 0040:0017 the bits of the byte have the following > meaning: > > bit 0 - if set (=1) then the keyboard is in a permanent shifted state > bit 1 - ? > bit 2 - ? > bit 3 - ? > bit 4 - scroll lock - 0 = off 1 = on > bit 5 - num lock - 0 = off 1 = on > bit 6 - caps lock - 0 = off 1 = onn Well, actually it's a word... bit 0 - right shift bit 1 - left shift bit 2 - Control state bit 3 - Alt state bit 4 - Scroll Lock state bit 5 - Num Lock state bit 6 - Caps Lock state bit 7 - Insert state bit 8 - (left) control *key* down bit 9 - Alt key down bit 10 - ?? bit 11 - ?? bit 12 - Scroll Lock key down bit 13 - Num Lock key down bit 14 - Caps Lock key down bit 15 - Insert key down... > > Eric (the red baron) Liber Still, two question marks left... And how does one detect the `AltGr' state ??? Markus Fischer