Terminal Navigation Keys

From Birnam Designs Wiki

Jump to: navigation, search

To make sure that all of the normal text navigation keys work the ~/.inputrc file needs to be edited. This covers mappings for:

  • Ctrl-left-arrow
  • Ctrl-right-arrow
  • Home
  • End
  • Delete
  • Insert
  1. # mappings for Ctrl-left-arrow and Ctrl-right-arrow for word moving
  2. "\e[1;5C": forward-word
  3. "\e[1;5D": backward-word
  4.  
  5. # allow the use of the Home/End keys
  6. "\e[1~": beginning-of-line
  7. "\e[4~": end-of-line
  8.  
  9. # allow the use of the Delete/Insert keys
  10. "\e[3~": delete-char
  11. "\e[2~": quoted-insert
Share This!
This page was last modified on 11 February 2010, at 20:09. This page has been accessed 480 times.