Browse Source
This makes Home/End keys working over SSH when connected from some clients like PuTTY on Windows. Basically all Linux distributions provide some default /etc/inputrc configuration: - Debian based distros in package readline-common (both Debian 9 and Ubuntu 17.10 share same config) - Red Hat based distros in package setup (both CentOS 7 and Fedora 27 share same config) - Arch Linux in package readline - openSUSE in package aaa_base - OpenWRT etc. The proposed inputrc configuration is a intersection of default mappings used in Debian 9, CentOS 7 and Arch Linux. That should provide safe and expected mappings.android-5
Marcel Dopita
7 years ago
committed by
Fredrik Fornwall
2 changed files with 29 additions and 1 deletions
@ -0,0 +1,24 @@ |
|||
# Be 8 bit clean. |
|||
set input-meta on |
|||
set output-meta on |
|||
|
|||
# some defaults / modifications for the emacs mode |
|||
$if mode=emacs |
|||
|
|||
# allow the use of the Home/End keys |
|||
"\e[1~": beginning-of-line |
|||
"\e[2~": quoted-insert |
|||
|
|||
# allow the use of the Delete/Insert keys |
|||
"\e[3~": delete-char |
|||
"\e[4~": end-of-line |
|||
|
|||
# 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[8~": end-of-line |
|||
|
|||
$endif |
Loading…
Reference in new issue