Terminal Navigation Keys
From Birnam Designs Wiki
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
# mappings for Ctrl-left-arrow and Ctrl-right-arrow for word moving"\e[1;5C": forward-word"\e[1;5D": backward-word# allow the use of the Home/End keys"\e[1~": beginning-of-line"\e[4~": end-of-line# allow the use of the Delete/Insert keys"\e[3~": delete-char"\e[2~": quoted-insert