* layout.c (init_curses) [!HAVE_SLANG]: Set ESCDELAY to 0 if

possible to prevent ncurses from waiting after escape.
This commit is contained in:
Pavel Roskin 2001-05-30 15:05:07 +00:00
parent 2990245111
commit 540cccc4d6
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2001-05-30 Pavel Roskin <proski@gnu.org>
* layout.c (init_curses) [!HAVE_SLANG]: Set ESCDELAY to 0 if
possible to prevent ncurses from waiting after escape.
2001-05-29 Pavel Roskin <proski@gnu.org>
* cmd.c (quick_cd_cmd) [HAVE_GNOME]: Disable.

View File

@ -599,6 +599,13 @@ void init_curses ()
void init_curses (void)
{
initscr();
#ifdef HAVE_ESCDELAY
/*
* If ncurses exports the ESCDELAY variable it should be set to 0
* or you'll have to press Esc three times to dismiss a dialog box.
*/
ESCDELAY = 0;
#endif
if (!status_using_ncurses)
do_enter_ca_mode ();
mc_raw_mode ();