From: <suc...@us...> - 2006-08-06 18:01:38
|
Revision: 180 Author: sucknblow Date: 2006-08-06 11:01:32 -0700 (Sun, 06 Aug 2006) ViewCVS: http://svn.sourceforge.net/pmplib/?rev=180&view=rev Log Message: ----------- Oops. fd_is_tty is always used, and therefore always needs to be initialised, regardless of whether we can detect terminal size. Modified Paths: -------------- trunk/pmplib/frontend/easypmp/cui/util.c Modified: trunk/pmplib/frontend/easypmp/cui/util.c =================================================================== --- trunk/pmplib/frontend/easypmp/cui/util.c 2006-08-05 22:50:29 UTC (rev 179) +++ trunk/pmplib/frontend/easypmp/cui/util.c 2006-08-06 18:01:32 UTC (rev 180) @@ -96,11 +96,11 @@ void display_init() { -#if CAN_GET_WIN_SIZE int i; for(i = 0; i <= 2; ++i) fd_is_tty[i] = isatty(i); +#if CAN_GET_WIN_SIZE signal(SIGWINCH,window_size_changed); window_size_changed(0); #endif/*CAN_GET_WIN_SIZE*/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |