diff 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
line wrap: on
line diff
--- a/mcabber/src/screen.c	Sun Dec 02 17:16:09 2007 +0100
+++ b/mcabber/src/screen.c	Sun Dec 02 17:56:51 2007 +0100
@@ -761,6 +761,14 @@
   start_color();
   use_default_colors();
 
+  if (settings_opt_get("escdelay")) {
+#ifdef HAVE_ESCDELAY
+    ESCDELAY = (unsigned) settings_opt_get_int("escdelay");
+#else
+    scr_LogPrint(LPRINT_LOGNORM, "ERROR: no ESCDELAY support.");
+#endif
+  }
+
   ParseColors();
 
   getmaxyx(stdscr, maxY, maxX);