[prog] Ncurses
Jimen Ching
jching at flex.com
Fri Feb 28 20:04:44 EST 2003
On Sat, 1 Mar 2003, Sachin wrote:
>Also the function cbreak() is supposed to mask Delete,erase & kill line
>keys,but even after this function was invoked,the program quits when
>Delete key is pressed!! What could be the problem?
Do you have a simple program to demonstrate this?
Also, what key sequence does your 'Delete' key generate? You can
determine this by doing the following; at the shell prompt hit the
following keys:
<Ctrl>-v <delete>
The key sequence will be displayed at the prompt. Some possible outputs
could be ^H, ^?, or ]]~3 or something similar.
Oh, and one other thing, cbreak doesn't really 'mask' the delete/erase
keys. 'Mask' implies _blocking_ of these key presses. cbreak disables
the processing of these keys, and passes the key sequence to the
application. Perhaps your application detects a delete key and exits?
--jc
--
Jimen Ching (WH6BRR) jching at flex.com wh6brr at uhm.ampr.org
More information about the Programming
mailing list