LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   short cuts console (https://www.linuxquestions.org/questions/linux-general-1/short-cuts-console-27897/)

jayakrishnan 08-14-2002 08:12 AM

short cuts console
 
How do i set short cuts in console. for example when i am in console mode and when i press F10 the halt command should get executed

Hans Zarkoff 08-14-2002 04:13 PM

You would set something up in your /etc/inittab.

This is an excerpt from doing a 'man inittab'

kbrequest
The process will be executed when init receives a signal from the keyboard handler that
a special key combination was pressed on the console keyboard.

The documentation for this function is not complete yet; more documentation can be found
in the kbd-x.xx packages (most recent was kbd-0.94 at the time of this writing). Basi-
cally you want to map some keyboard combination to the "KeyboardSignal" action. For
example, to map Alt-Uparrow for this purpose use the following in your keymaps file:

alt keycode 103 = KeyboardSignal


So check out the docs for kbd-0.94 and they'll tell you what to do.


All times are GMT -5. The time now is 03:40 PM.