[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Grabbing Escape key
From: |
Dave Wood |
Subject: |
Re: Grabbing Escape key |
Date: |
Thu, 15 Jan 2009 18:08:55 +0000 |
User-agent: |
Mutt/1.5.18 (2008-12-10) |
On (23:43 13/01/09), Dan Nelson <address@hidden> put forth the proposition:
In the last episode (Jan 14), Dave Wood said:
How do I use the escape key in an input routine? I looked in
ncurses.h but didn't see anything there except ESCDELAY.
I tried using 1 as a keycode but that doesn't seem to be working:
int c = getch();
switch(c)
{
case 1:
return;
}
getch should return 27 when ESC is pressed. What do you see being
returned when you hit ESC?
Yes 27 works fine thanks. I got '1' because that's what grabkeys returned
when I treid it.
--
Dan Nelson
address@hidden
_______________________________________________
Bug-ncurses mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/bug-ncurses
--
World War Three can be averted by adherence to a strictly enforced
dress code!