Find the answer to your Linux question:
Results 1 to 4 of 4
Hi, I have a console application that make use of CTRL+arrow keys (CTRL + left arrow must have a different behavior than left arrow) If I run this application under ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2009
    Posts
    3

    console ctrl+arrow keys


    Hi,

    I have a console application that make use of CTRL+arrow keys (CTRL + left arrow must have a different behavior than left arrow)

    If I run this application under X in a terminal is OK, but if I run it in text mode console ( no X ) CTRL+arrow return the same as arrow.

    I run CentOS.
    I tested under Ubuntu too, and there CTRL+arrow return something else.

    I need some hints where I can make some settings to have the desired key bindings, I searched a lot but I just can find any starting point

    Thank You

  2. #2
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    1,167
    Quote Originally Posted by ezalpar View Post
    Hi,

    I have a console application that make use of CTRL+arrow keys (CTRL + left arrow must have a different behavior than left arrow)

    If I run this application under X in a terminal is OK, but if I run it in text mode console ( no X ) CTRL+arrow return the same as arrow.

    I run CentOS.
    I tested under Ubuntu too, and there CTRL+arrow return something else.

    I need some hints where I can make some settings to have the desired key bindings, I searched a lot but I just can find any starting point

    Thank You
    The problem lies in your keymap. This is the file that maps kernel keycodes to key symbols. If the keymap you are using does not provide different symbolic values for keys used with a particular modifier, then that modifier will have no effect for those keys. You will need to create a small auxiliary keymap with those mappings and load it at boot using the rc.local script. Here is a link to a HOWTO that might help you.
    Last edited by hazel; 09-14-2011 at 11:11 AM.
    "I'm just a little old lady; don't try to dazzle me with jargon!"

  3. #3
    Just Joined!
    Join Date
    Nov 2009
    Posts
    3
    thanks for your replay, I read the howto you linked ( many times), but I'm still confused.
    I just can't find my keymaps for remote sessions (with putty), and loadkey is only for local sessions. If you can point me into the right direction it would be very helpful.

  4. #4
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    1,167
    Quote Originally Posted by ezalpar View Post
    I just can't find my keymaps for remote sessions (with putty), and loadkey is only for local sessions. If you can point me into the right direction it would be very helpful.
    Sorry, I can't help you there. I once had the identical problem on my home machine running Red Hat 6 (that shows how old I am!) and I remember that I solved it by creating and loading an auxiliary keymap. But I have no experience of networking or of putty.
    "I'm just a little old lady; don't try to dazzle me with jargon!"

Posting Permissions

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