Advertisement

Q:What to do when app eats keyboard input?

Started by August 18, 2003 02:15 AM
4 comments, last by Feral 21 years, 5 months ago
I''ve a question: What should one do to recover when an app crashes and is eating keyboard input? (i.e. can''t switch to another term via alt+fkey and ctrl+alt+backspace won''t get out of X, etc.) Currently I''m having to hit reset which to put it mildly stinks Sugestions welcome. (by the by I can''t connect remotly) Thank you, Feral
Edit app.
Advertisement
SSH or TELNET into a new console?

Int.
Add a check for a special quit-key every loop
Aye SSH/telnet should work in those cases... but is there any other way? Perhaps some daemon that moniters keypresses? (course ctrl+alt+del doth not do anything either and I''m under the impression that is a daemon lurking for that.)


By the by I am asking in general not how to make my apps work I do have the source for the one in question (sdl example app: testwm.c) but I''ve had this problem with a few apps before (not just things I''ve compiled, though this is the first in FreeBSD land).

Thank ye all
Since you mentioned BSD, I''m not sure if this would work, but... In the linux kernel, there''s something about the "sysrq" key, which you want to enable. This allows you to send a few signals to the OS even if otherwise normal keyboard input doesn''t work. I''m not sure exactly too much about it since I haven''t ever actually used it, but you may want to look into it.

The Artist Formerly Known as CmndrM

http://chaos.webhop.org

This topic is closed to new replies.

Advertisement