> It has been a very long time. But, if I recall correctly, I’m fairly sure 
> you
> can programmatically change the LEDs as well. But, I don’t recall the
> details. But, I might have code sitting around somewhere that has that
> functionality. 

The LED status is contained in the BIOS Data Area (BDA), but it is not always 
correctly synced with the actual LEDs, especially in some Virtual Machines.  I 
also have problems with my USB keyboard drivers maintaining this 
synchronization.  Simply setting the LED on (or off) in the BDA doesn't 
guarantee that the correct signal gets sent to the keyboard to control the LED 
(if the keyboard even has LEDs, which modern keyboards often don't, especially 
if they're wireless).

> However excluding CAPS LOCK LED, I don’t think I’ve had a keyboard with 
> the
> other LEDs for a very long time.  No real way for me to test that at present.

FWIW, I'm working on a TSR called LOCKEYS that displays the status of the Lock 
Keys (Shift, Num, and Scroll) and also the INSert status, on the screen.  It's 
basically ready to go, but I still have some tweaks to do.  But I can send a 
"pre-release" copy to anybody who wants a copy right now.

At first I thought what I should do with it is have it mimic the LED status in 
the BDA, but that turned out to be very problematic (especially in VMs).  So I 
have it mimic the Lock key status in the BDA instead (what the BIOS and 
therefore what most DOS programs think the Lock Key status is, not necessarily 
what the LEDs think it is).  I also added the INSert status to the display 
since that is useful to know and not always obvious in all situations.


_______________________________________________
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to