Menu

#271 disable certain keys when using -k switch

v1.0_(example)
open
nobody
None
5
2016-04-27
2016-04-16
kalpha
No

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.

Discussion

  • Stas Sergeev

    Stas Sergeev - 2016-04-16

    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.

     
  • kalpha

    kalpha - 2016-04-16

    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

     
  • Stas Sergeev

    Stas Sergeev - 2016-04-16

    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.

     
  • kalpha

    kalpha - 2016-04-27

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.