|
From: | Thomas Dickey |
Subject: | Re: Can you help me about the following questions about ncurses |
Date: | Tue, 15 Dec 2009 07:03:27 -0500 (EST) |
On Tue, 15 Dec 2009, yan liu wrote:
Dear ncurses maintenance team, I'm studying curses now and want to build a Text-based User Interface with it. But I find curses cann't handle keys such as *shifted F1, shifted F2, shifted F3~shifted F10, shifted Tab, Ctrl Home, Ctrl End, Ctrl PGUP, Ctrl PGDN, Ctrl Backspace*. It is really appreciated if you can give me some suggestions, many thanks!
curses "doesn't" because this is a feature not generally supported by terminals.Some terminals (xterm for instance) can send different escape sequences for function-keys that are modified (shift, control, etc). ncurses' terminfo entries can hold this data, and using tigetstr and define key you can make ncurses know about the codes that you'd like to use for working with them.
-- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net
[Prev in Thread] | Current Thread | [Next in Thread] |