Results 1 to 2 of 2

Thread: keyboard: map commands to keys in ttys

  1. #1
    Join Date
    Feb 2010
    Location
    Argentina
    Beans
    19
    Distro
    Ubuntu 9.10 Karmic Koala

    Question keyboard: map commands to keys in ttys

    Hi folks,

    What I'm trying to do is to map commands to keystrokes in BASH or another shell.

    NOT in X. Just sticking to the TTYS !

    So far I have worked the following table.

    Code:
    ### keycodes
    
    ## play/pause
    
    #quick
    0x00 0x81 0xa4 0x80 0x81 0xa4
    
    #slow
    0x00 0x81 0xa4
    0x80 0x81 0xa4
    
    ## stop
    
    #quick 
    0x00 0x81 0xa6 0x80 0x81 0xa6
    
    #slow
    0x00 0x81 0xa6 
    0x80 0x81 0xa6
    
    
    
    ### Scancodes
    
    ## play/pause
    
    #quick
    0xe0 0x22 0xe0 0xa2
    
    #slow
    0xe0 0x22 
    0xe0 0xa2
    
    
    ## stop
    
    #quick
    0xe0 0x24 0xe0 0xa4
    
    #slow
    0xe0 0x24
    0xe0 0xa4
    These were made with showkey.

    Now I would like to map them in this fashion
    https://wiki.archlinux.org/index.php...eys_in_Console

    Another alternative I have tried is
    http://www.linuxhowtos.org/System/as...ds_to_keys.htm
    But some of the keys do not output anything.

    Thanks in advance

  2. #2
    Join Date
    Feb 2010
    Location
    Argentina
    Beans
    19
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: keyboard: map commands to keys in ttys

    bumping

Tags for this Thread

Bookmarks

Posting Permissions

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