Do not set Curses variable too early
This patch fixes a freeze when scr_LogPrint() is called before ncurses
are fully initialized, for example when the colors are wrong in the
config file. Problem reported by Jeff~ in the mcabber MUC room.
--- a/mcabber/src/screen.c Wed Sep 27 22:57:23 2006 +0200
+++ b/mcabber/src/screen.c Thu Sep 28 21:36:58 2006 +0200
@@ -305,7 +305,6 @@
intrflush(stdscr, FALSE);
start_color();
use_default_colors();
- Curses = TRUE;
ParseColors();
@@ -317,6 +316,7 @@
inputLine[0] = 0;
ptr_inputline = inputLine;
+ Curses = TRUE;
return;
}