It was indicated by jhall in his fosdem talk earlier today that this
would be the appropriate place to post this little utility I wrote a few
years ago, and that it might be of interest to the people here:
https://github.com/jtsiomb/capsmap

I usually remap caps lock to something more useful (ctrl) on all my
systems, and since I've been doing some retrocoding under DOS in the
past few years, it was annoying me that I didn't have that
functionality.
So I wrote this simple TSR to do caps-lock remapping. It basically sets
up a keyboard interrupt handler which handles capslock keypresses, by
either changing the BIOS modifier flags or appending to the BIOS
keyboard buffer (mapping is a compile-time option). For any other key
event, it just jumps to the original interrupt handler to let the BIOS
deal with it.

I placed the code in the public domain, so there shouldn't be any
licensing issues if you decide this is useful enough to include in the
FreeDOS distribution.

Also I'm only ever using it for remapping caps->ctrl, so for me the
compile-time choice of the mapping is sufficient and I did not have much
incentive to make it more complicated than that, but if more people are
interested in using it, I could improve it to make that a command-line
option. Either way, let me know if you try it and have any feedback.

Builds with nasm and make, but pre-compiled binaries are included in the
1.0 release on github.

-- 
John Tsiombikas
http://nuclear.mutantstargoat.com/


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

Reply via email to