diff --git a/src/ChangeLog b/src/ChangeLog index 9acf947a7..a7a5e8633 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2001-05-30 Pavel Roskin + + * layout.c (init_curses) [!HAVE_SLANG]: Set ESCDELAY to 0 if + possible to prevent ncurses from waiting after escape. + 2001-05-29 Pavel Roskin * cmd.c (quick_cd_cmd) [HAVE_GNOME]: Disable. diff --git a/src/layout.c b/src/layout.c index 0f2e7132c..6a42b3cb4 100644 --- a/src/layout.c +++ b/src/layout.c @@ -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 ();