View previous topic :: View next topic |
Author |
Message |
Gherald Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/gallery/BaldursGate/baldursgate2_yoshimo.gif)
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 |
|
![](templates/gentoo/images/spacer.gif) |
moocha Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
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 |
|
![](templates/gentoo/images/spacer.gif) |
Gherald Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/gallery/BaldursGate/baldursgate2_yoshimo.gif)
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 |
|
![](templates/gentoo/images/spacer.gif) |
moocha Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
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 |
|
![](templates/gentoo/images/spacer.gif) |
Gentree Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/1364161114417d616b9645b.jpg)
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' ![Cool 8)](images/smiles/icon_cool.gif) _________________ 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 |
|
![](templates/gentoo/images/spacer.gif) |
moocha Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
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* ![Wink :wink:](images/smiles/icon_wink.gif) _________________ 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 |
|
![](templates/gentoo/images/spacer.gif) |
Gherald Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/gallery/BaldursGate/baldursgate2_yoshimo.gif)
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' ![Cool 8)](images/smiles/icon_cool.gif) |
Indeed, thanks much! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|