14

When I type Control and any of the arrow keys in any terminal (gnome-terminal, as well as terminator), I get this (or something like it).

It happens when I use openbox as well, so it's not a compiz issue. And it's only in terminal programs, never in a GUI app (such as Firefox, Chrom(ium)e, or Empathy).

jrg
  • 61,707

2 Answers2

19

What is in your ~/.inputrc and /etc/inputrc? The minimum to get those keys working is, I think:

# mappings for Ctrl-left-arrow and Ctrl-right-arrow for word moving
"\e[1;5C": forward-word
"\e[1;5D": backward-word
"\e[5C": forward-word
"\e[5D": backward-word
"\e\e[C": forward-word
"\e\e[D": backward-word

If you have these in /etc/inputrc, the file needs to be included from ~/.inputrc, so check that it has the following line:

$include /etc/inputrc
taneli
  • 2,629
0

You may be using the wrong shell. Try to change the shell into bash by commanding

chsh -s /bin/bash $(whoami)

Do not use sudo or run as root. You may be prompted to enter the password. Reboot after you change the shell.

h22
  • 196