Find the answer to your Linux question:
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.
  1. #1
    Just 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?

  2. #2
    Just Joined! sharik_pahwa's Avatar
    Join Date
    Jun 2007
    Posts
    29

    Thumbs up

    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.

  3. #3
    Just 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?

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined! sharik_pahwa's Avatar
    Join Date
    Jun 2007
    Posts
    29

    Thumbs up

    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.

  6. #5
    Just 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'

  7. #6
    Just Joined! sharik_pahwa's Avatar
    Join Date
    Jun 2007
    Posts
    29
    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.

  8. #7
    Just 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •