summaryrefslogtreecommitdiff
path: root/bash/bash-2.05b/rl-del-backspace-policy.patch
diff options
context:
space:
mode:
Diffstat (limited to 'bash/bash-2.05b/rl-del-backspace-policy.patch')
-rw-r--r--bash/bash-2.05b/rl-del-backspace-policy.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/bash/bash-2.05b/rl-del-backspace-policy.patch b/bash/bash-2.05b/rl-del-backspace-policy.patch
index e69de29bb2..3fc449f081 100644
--- a/bash/bash-2.05b/rl-del-backspace-policy.patch
+++ b/bash/bash-2.05b/rl-del-backspace-policy.patch
@@ -0,0 +1,28 @@
+--- lib/readline/terminal.c.orig Mon Mar 4 18:23:09 2002
++++ lib/readline/terminal.c Fri Jul 19 08:25:48 2002
+@@ -148,6 +148,9 @@
+ /* Insert key */
+ static char *_rl_term_kI;
+
++/* The key sequence sent by the Delete key, if any. */
++static char *_rl_term_kD;
++
+ /* Cursor control */
+ static char *_rl_term_vs; /* very visible */
+ static char *_rl_term_ve; /* normal */
+@@ -314,6 +317,7 @@
+ { "ic", &_rl_term_ic },
+ { "im", &_rl_term_im },
+ { "kH", &_rl_term_kH }, /* home down ?? */
++ { "kD", &_rl_term_kD }, /* delete */
+ { "kI", &_rl_term_kI }, /* insert */
+ { "kd", &_rl_term_kd },
+ { "ke", &_rl_term_ke }, /* end keypad mode */
+@@ -496,6 +500,7 @@
+
+ _rl_bind_if_unbound (_rl_term_kh, rl_beg_of_line); /* Home */
+ _rl_bind_if_unbound (_rl_term_at7, rl_end_of_line); /* End */
++ _rl_bind_if_unbound (_rl_term_kD, rl_delete); /* Delete */
+
+ _rl_keymap = xkeymap;
+ }