|
From: | Dave Wood |
Subject: | Grabbing Escape key |
Date: | Wed, 14 Jan 2009 03:05:57 +0000 |
User-agent: | Mutt/1.5.18 (2008-12-10) |
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; } Any help as always appreciated.
[Prev in Thread] | Current Thread | [Next in Thread] |