bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with keys


From: Thomas Dickey
Subject: Re: Problem with keys
Date: Wed, 7 May 2008 08:41:32 -0400 (EDT)

On Tue, 6 May 2008, galapogos wrote:

Thomas Dickey-2 wrote:

On Tue, 6 May 2008, galapogos wrote:

Thomas Dickey-2 wrote:
If kbs is ^H, then ncurses looks for control/H.
But if your terminal sends ^?, then ncurses will not know it is
backspace.

Most of the Linux distributions make changes as needed to make the
terminal emulators send ^? for "backspace", while almost everyone else
uses ^H.  They should also modify the terminfo entries in ncurses, but
not all of the Linux distributions do _that_.

So basically I have to make sure the key mapping in the terminal
emulator(termcap/terminfo) matches the terminfo entries in ncurses?

yes, that's correct

Thanks. Can I assume this to be hardware independent? i.e. if I modify the
ncurses terminfo as well as the system terminfo, and move this configuration
around different machines, it will display the same behavior? I'm also
concerned about different types of keyboards around the world. Some of them
don't seem to follow the same exact layout, eg Japanese keyboards

It's only dependent on the terminal emulators and how they're configured.

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net




reply via email to

[Prev in Thread] Current Thread [Next in Thread]