Skip to main content
5 of 6
edited tags
Gilles 'SO- stop being evil'
  • 865.9k
  • 205
  • 1.8k
  • 2.3k

What is the gnome-terminal ANSI escape sequence for "CTRL + arrow/s"?

I am trying to configure my bash ~/.inputrc to these settings
(Note: , mean the left and right arrow keys)

  • Ctrl + - should jump back a word
  • Ctrl + - should jump forward a word

Currently I have this in my ~/.inputrc and it doesnt work. Ctrl + arrow produces nothing.

"\eC-5C":forward-word "\eC-5D":backward-word 

I'm sure my escape sequence is wrong.
What are the correct escape sequences for the Ctrl + arrow combinations?

  • terminal: tmux inside gnome-terminal
the_velour_fog
  • 12.8k
  • 17
  • 73
  • 115