Results 1 to 7 of 7
one of the keys on my keyboard doesn't work (its the last letter in the alphabet). I heard there was a work around so that i could use that letter ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 06-21-2007 #1Just Joined!
- Join Date
- Nov 2005
- Location
- Auburn, Maine
- Posts
- 75
alternate ways of typing keys
one of the keys on my keyboard doesn't work (its the last letter in the alphabet). I heard there was a work around so that i could use that letter if i needed to (which i do alot) without having to press it. How can i do this?
- 06-21-2007 #2
u can do that via stty command
like if the key not working is "backspace"
u can issue command
#stty erase "1"
and 1 will start working as backspace.
similarly read man stty for more details.
- 06-21-2007 #3Just Joined!
- Join Date
- Nov 2005
- Location
- Auburn, Maine
- Posts
- 75
ok what about the last letter of the alphabet. I can't use it at all so stty [nonworking letter] "1" or won't work lol. Besides which, what if I need to use a 1 or whatever. Can I assign it to like F12 or something?
- 06-21-2007 #4
seems like it works for some special keys
#stty -a
would reccomend to
#man loadkeys
seems like this will solve the purpose
pretty interesting issue, me too working on it.
- 06-21-2007 #5Just Joined!
- Join Date
- Nov 2005
- Location
- Auburn, Maine
- Posts
- 75
ok i did stty z "A" (i get A when i press F1) and I get invalid argument 'z'
- 06-21-2007 #6
yes as i have already explained in previous post stty works for some special keys
like backspace, delete, etc.
for alphanumeric keys, seems like
#man load keys
#man keymaps
are better suited.
there is a command called showkeys which gives the numeric code of each keystroke.
this is loaded via a file called keymaps.
hence if we can change the numeric code of specific key ( as for z its 44)
the other key will work as same.
- 06-21-2007 #7Just Joined!
- Join Date
- Nov 2005
- Location
- Auburn, Maine
- Posts
- 75
According to showkey, F8 is keycode 66. I want F8 to display z when pressed so in /usr/share/kbd/keymaps/i386/include/qwerty-layout.inc i changed the line "keycode 44 = z" to "keycode 66 = z". I changed this file because /usr/share/kbd/keymaps/i386/qwerty/us.map has a line "include qwerty-layout" which contains keycodes for letters so I assumed that this was the one I should change right? So I did all that but when I press F8, I get ~ instead of z


Reply With Quote
