comparison mcabber/src/screen.c @ 1386:8e763c2c331f

Add option 'escdelay' This option overrides the environment variable. The autoconf check for ESCDELAY was borrowed from the Midnight Commander project.
author Mikael Berthe <mikael@lilotux.net>
date Sun, 02 Dec 2007 17:56:51 +0100
parents 1447c5296977
children 753a348c65c1
comparison
equal deleted inserted replaced
1385:7ca57f7e313c 1386:8e763c2c331f
759 nonl(); 759 nonl();
760 intrflush(stdscr, FALSE); 760 intrflush(stdscr, FALSE);
761 start_color(); 761 start_color();
762 use_default_colors(); 762 use_default_colors();
763 763
764 if (settings_opt_get("escdelay")) {
765 #ifdef HAVE_ESCDELAY
766 ESCDELAY = (unsigned) settings_opt_get_int("escdelay");
767 #else
768 scr_LogPrint(LPRINT_LOGNORM, "ERROR: no ESCDELAY support.");
769 #endif
770 }
771
764 ParseColors(); 772 ParseColors();
765 773
766 getmaxyx(stdscr, maxY, maxX); 774 getmaxyx(stdscr, maxY, maxX);
767 Log_Win_Height = DEFAULT_LOG_WIN_HEIGHT; 775 Log_Win_Height = DEFAULT_LOG_WIN_HEIGHT;
768 // Note scr_DrawMainWindow() should be called early after scr_InitCurses() 776 // Note scr_DrawMainWindow() should be called early after scr_InitCurses()