From fe855a7e499ff368e8ba8920c5ff3a89709fbca6 Mon Sep 17 00:00:00 2001 From: Pat Thoyts Date: Mon, 16 Apr 2012 22:41:22 +0100 Subject: [PATCH] Fix inputrc for rxvt usage. When using rxvt the backspace key deletes the whole line because for rxvt and the bash prompt the backspace key produces different input. This patch ammends the handling of backspace/control-backspace for rxvt so that it only deletes one char at a time. Normal bash prompt input is left as before. Reported-by: Jon Seymour Signed-off-by: Pat Thoyts --- etc/inputrc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/etc/inputrc b/etc/inputrc index ab06f3ac..be27ccb4 100644 --- a/etc/inputrc +++ b/etc/inputrc @@ -28,12 +28,13 @@ set show-all-if-ambiguous off # MSYSTEM is emacs based $if mode=emacs # Common to Console & RXVT - "\C-?": backward-kill-line # Ctrl-BackSpace "\e[2~": paste-from-clipboard # "Ins. Key" "\e[5~": beginning-of-history # Page up "\e[6~": end-of-history # Page down - $if term=msys # RXVT + $if term=xterm # RXVT + "\C-h": backward-kill-line + "\C-?": backward-delete-char "\e[7~": beginning-of-line # Home Key "\e[8~": end-of-line # End Key "\e[11~": display-shell-version # F1 @@ -47,8 +48,7 @@ $if mode=emacs "\e[20~": "Function Key 9" "\e[21~": "Function Key 10" $else - # Eh, normal Console is not really cygwin anymore, is it? Using 'else' instead. -mstormo - # $if term=cygwin # Console + "\C-?": backward-kill-line # Ctrl-BackSpace "\e[1~": beginning-of-line # Home Key "\e[4~": end-of-line # End Key "\e[17~": "Function Key 6" -- 2.11.4.GIT