Re: Backspace, etc.
Sam Varshavchik <[email protected]>
| Newsgroups | gmane.mail.cone |
|---|---|
| Message-ID | <[email protected]> |
Giles Constant writes: > On Wednesday 21 July 2004 10:46, Giles Constant wrote: >> > >> > On this linux distribution, the standard behavior works correctly with >> > Cone. >> >> great.. clearly it's not a problem. >> >> On this distribution, everything except cone works. > > It wouldn't have anything to do with this small snippet of code would it? > > From mycurses.H: > > // Generic encapsulation of keyboard input. Keyboard input is either > // a key, wchar_t, or a special function key, like a cursor key. > // Rather than pull in all the baggage of curses.h, just to get > // the key definition, we define our own constants. Which also > // makes it possible to define magic keys that are not defined by > // curses.h > > Again, the DEL keysym and the BS keysym can translate to very different > behavior, depending on the terminfo database. Incidentally, Eterm describes > the process in this FAQ: http://www.eterm.org/docs/faq/, and goes on to point > out that it has its own terminfo entry, so cone *should* work with Eterm if > it is using terminfo properly, just as all my other programs do. Clearly, > something is wrong. If cone works on your terminal, it's because you have > your backspace key mapped to '^H', Nope, my gnome-terminal configuration maps the backspace key to ASCII DEL. And Cone expects to read KEY_BACKSPACE from curses, for the backspace action.
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQBA/k4Xx9p3GYHlUOIRAr43AJ9RWNWNgkws56Ee9AtYZODi47mglQCeP10W X0EmuB7W9HwF7792qkOroF4= =DSgs -----END PGP SIGNATURE-----