bug-ncurses
[Top][All Lists]
Advanced

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

Re: Intercepting Ctrl and Meta key


From: Thomas Dickey
Subject: Re: Intercepting Ctrl and Meta key
Date: Wed, 18 Feb 2009 18:30:46 -0500 (EST)

On Wed, 18 Feb 2009, TheLonelyStar wrote:

How can I get keyboard events which are combined with Ctrl and Meta (Alt)
key?

That's dependent on the terminal.  It may send a special character string
(which is what ncurses can use), or it may require some special system
calls (not done here ;-).

For the special character strings, ncurses would use the terminal description for that particular terminal type. The convention here
is to assign the various combinations as just another function-key.
You can see an example with

        infocmp xterm-new

(there's pros/cons about providing a different style of interface -
this happens to offer the fewest surprises to portable curses apps)

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




reply via email to

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