lkml.org 
[lkml]   [2002]   [Jan]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectCatching modifier keys after kernel boot
Date
From
I'm working on a system recovery mechanism that runs in the linuxrc file
that will restore a corrupted system. I need to do it by detecting that
the user is pressing a certain key sequence (such as
CTRL-ALT-BACKSPACE). Since the user may start pressing that key
sequence while the kernel is booting, how can I detect the make codes
for the CTRL and ALT keys? (The BACKSPACE key is easy enough to see
since the keyboard in autorepeat mode repeats the last key pressed.)
I'm already reading from the keyboard in RAW mode, but is there another
way to check the state of the modifier keys?

David Christensen
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:15    [W:0.035 / U:0.212 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site