[Gloucs] escape key and ncurses
Paul Robertson
gloucs at mailman.lug.org.uk
Sun Oct 6 14:37:00 2002
#define ESCAPE_KEY 27
It should work for the local console at least.
Remember curses uses Esc internally for escape sequences.
This is somewhat at odds with the key being available on
the keyboard. Consequently, when pressing Esc in a
program which uses curses to read input you might notice
a delay while curses figures out if the Esc is a single
keypress or the start of a sequence.
--
Paul
----- Original Message -----
From: "Chris West" <Chrisw@cristie.com>
To: <Gloucs@mailman.lug.org.uk>
Sent: Monday, September 02, 2002 2:48 PM
Subject: [Gloucs] escape key and ncurses
Hello all,
Anyone know how to trap the 'Esc' key using ncurses?
I can't find a KEY_ESC or anything that seems to do it in the ncurses.h
header file.
Chris