Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 46254 Details for
Bug 74807
readline doesn't pick up the delete-key binding from terminfo
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Automatically bind the delete key from terminfo
rl-del-backspace-policy.patch (text/plain), 1.35 KB, created by
Ivan Todoroski
on 2004-12-17 21:06:47 UTC
(
hide
)
Description:
Automatically bind the delete key from terminfo
Filename:
MIME Type:
Creator:
Ivan Todoroski
Created:
2004-12-17 21:06:47 UTC
Size:
1.35 KB
patch
obsolete
># DP: Handle Debian Backspace/Delete keyboard policy > >diff -ur readline5-5.0~alpha.orig/terminal.c readline5-5.0~alpha/terminal.c >--- readline5-5.0~alpha.orig/terminal.c 2003-09-18 17:03:42.000000000 +0200 >+++ readline5-5.0~alpha/terminal.c 2003-09-27 17:15:30.000000000 +0200 >@@ -82,7 +82,7 @@ > > #if !defined (__linux__) > # if defined (__EMX__) || defined (NEED_EXTERN_PC) >-extern >+extern > # endif /* __EMX__ || NEED_EXTERN_PC */ > char PC, *BC, *UP; > #endif /* __linux__ */ >@@ -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 */ >@@ -280,7 +283,7 @@ > if (cols) > *cols = _rl_screenwidth; > } >- >+ > void > rl_resize_terminal () > { >@@ -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 */ >@@ -492,6 +496,7 @@ > > rl_bind_keyseq_if_unbound (_rl_term_kh, rl_beg_of_line); /* Home */ > rl_bind_keyseq_if_unbound (_rl_term_at7, rl_end_of_line); /* End */ >+ rl_bind_keyseq_if_unbound (_rl_term_kD, rl_delete); /* Delete */ > > _rl_keymap = xkeymap; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 74807
: 46254