--- readline-4.3/terminal.c.orig 2002-03-04 20:23:09 +0300 +++ readline-4.3/terminal.c 2002-09-29 14:04:55 +0400 @@ -148,6 +148,9 @@ static char *_rl_term_at7; /* @7 */ /* 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 @@ static struct _tc_string tc_strings[] = { "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 @@ bind_termcap_arrow_keys (map) _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; }