View previous topic :: View next topic |
Author |
Message |
Gherald Veteran
Joined: 23 Aug 2004 Posts: 1399 Location: CLUAConsole
|
Posted: Tue May 10, 2005 5:53 am Post subject: extra keyboard keys on the console? |
|
|
I know how to use xev and xmodmap to map those extra, non-standard keyboard keys under X.
Is there a way to do this for VTs, too?
For instance, I want to do something like map the xev keycodes 233 and 234 to function keys F19 and F20. |
|
Back to top |
|
|
moocha Watchman
Joined: 21 Oct 2003 Posts: 5722
|
Posted: Tue May 10, 2005 5:57 am Post subject: |
|
|
Yes. Refer to the man pages for loadkeys and dumpkeys, and check the /etc/init.d/keymaps script for an example on how to use them. _________________ Military Commissions Act of 2006: http://tinyurl.com/jrcto
"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin |
|
Back to top |
|
|
Gherald Veteran
Joined: 23 Aug 2004 Posts: 1399 Location: CLUAConsole
|
Posted: Tue May 10, 2005 6:53 am Post subject: |
|
|
Thanks. Is there an analog to xev ? The 233 and 234 codes don't seem to work with loadkeys... I'm getting nothing after doing
Code: | # loadkeys
keycode 233 = F19
keycode 234 = F20
string F19 = "pressedF19"
string F20 = "pressedF20" |
|
|
Back to top |
|
|
moocha Watchman
Joined: 21 Oct 2003 Posts: 5722
|
Posted: Tue May 10, 2005 6:59 am Post subject: |
|
|
Perhaps they're not the same keycodes - run showkey to check. Note that once it runs you can't quit it since it hijacks the keyboard - wait 10 seconds without any keypress and it will quit by itself. _________________ Military Commissions Act of 2006: http://tinyurl.com/jrcto
"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin |
|
Back to top |
|
|
Gentree Watchman
Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Tue May 10, 2005 7:15 am Post subject: |
|
|
you're a gold mine mooch' _________________ Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86 |
|
Back to top |
|
|
moocha Watchman
Joined: 21 Oct 2003 Posts: 5722
|
Posted: Tue May 10, 2005 7:29 am Post subject: |
|
|
Aw, shucks... *shuffles to the closest corner to blush, simultaneously trying to beat down the inflating ego* _________________ Military Commissions Act of 2006: http://tinyurl.com/jrcto
"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin |
|
Back to top |
|
|
Gherald Veteran
Joined: 23 Aug 2004 Posts: 1399 Location: CLUAConsole
|
Posted: Tue May 10, 2005 7:32 am Post subject: |
|
|
moocha wrote: | run showkey to check |
Gentree wrote: | you're a gold mine mooch' |
Indeed, thanks much! |
|
Back to top |
|
|
|