Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 180264 - app-editors/zile-2.2.24 doesn't distinguish between ^h and ^?
Summary: app-editors/zile-2.2.24 doesn't distinguish between ^h and ^?
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Emacs project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-29 19:49 UTC by Maarten Bressers (RETIRED)
Modified: 2007-05-29 21:17 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maarten Bressers (RETIRED) gentoo-dev 2007-05-29 19:49:52 UTC
zile-2.2.24 doesn't distinguish between ^h (help function) and ^? (backspace), even when backspace is configured to send ascii del. I found a small patch online (http://www.mstevens.org/code/zile-backspace.html) that fixes this:

$ cat zile-2.2.24-ctrl-h.patch
--- src/term_ncurses.c.orig     2007-05-29 21:27:53.000000000 +0200
+++ src/term_ncurses.c  2007-05-29 21:28:41.000000000 +0200
@@ -155,6 +155,7 @@
   case KEY_DC:         /* DEL */
     return KBD_DEL;
   case KEY_BACKSPACE:  /* BS */
+    return KBD_CTRL | 'h';
   case 0177:           /* BS */
     return KBD_BS;
   case KEY_IC:         /* INSERT */


Reproducible: Always

Actual Results:  
keycombo ctrl-h h doesn't produce help text, but a 'h' in the scratch buffer.

Expected Results:  
keycombo ctrl-h h should display zile's help text.
Comment 1 Ulrich Müller gentoo-dev 2007-05-29 20:43:15 UTC
C-h and backspace work for me (on the Linux console).
With your patch applied, backspace doesn't work anymore ...

See also /usr/share/zile/FAQ:
   2.9. The `C-h' key is bound to <BS>/<DEL>; help doesn't work.
Comment 2 Ulrich Müller gentoo-dev 2007-05-29 21:17:09 UTC
In case you observe the problem within an xterm, you may also look at <http://www.ibb.net/~anne/keyboard/keyboard.html#terminfo> for possible solutions.

(In short: "infocmp" should show kbs=\177. If it shows kbs=^H then you have a problem with terminfo.)