disable certain keys when using -k switch
Brought to you by:
bartoldeman
Is it possible by configuration or recompiling code to disable certain keys?
I want to disable the PrintScreen, ScrollLock, and Pause keys on a system running debian packaged dosemu 1.4 under Debian 7.1 with no X running.
If I setup a keymap file and use LOADKEYS, I can disable those keys no problem.
And if I launch dosemu with no switch or the -t parameter the keys remain disabled.
Unfortunately I need the -k parameter to allow F11 and F12 keys, and the -k setting seems to ignore the LOADKEYS overide.
My big issue is that the PrintScreen key appears to freeze debian when running dosemu -k
Freeze, in that I can not exit dosemu via CTRL+ALT+PgDn or access other ttys, have to hard reset.
You simply need to enable the magic sysrq
keys in your /etc/sysctl.conf. Then you'll be able
to exit from any console app with Alt-PrtSc-k.
dosemu is out of support, try dosemu2.
ta, but I really need to disable the Printscreen.... i.e. avoid issue in first place.
Which branch of dosemu2 is the closest to a "stable" branch, is it "master"?
Does/Can dosemu2 run in it's own dosemu2 space?
the install doc references all the exist dosemu paths
Maybe with dosemu2 you'll avoid an issue
without disabling PrintScreen? Who knows.
Yes, dosemu2 is using the same pathes currently.
This will likely remain so unless someone decides
to resurrect dosemu1. If dosemu1 is completely
abandonned (as it seems it is), there is simply no
reason of doing an extra work to use different pathes,
because it is very unlikely that some distro is to
provide both.
just to update this.
The printscreen freezing my system I believe was related to my $_lpt settings in dosemu.conf (I think it was pointing to a (no longer connected) serial connected printer, making all $_lptx = "" stopped any freezing)
And to ignore PrintScreen, Scroll Lock or Pause, was resolved by a DOS assembler utility to trap and ignore those keys.