updates.
[silc.git] / apps / irssi / src / fe-text / term.c
index 94d81cfd61b214542373cc0a5015ee0cfc85cb2a..03004b10a9e741dfe6812f8482a88991e49a96e1 100644 (file)
@@ -56,6 +56,9 @@ int term_get_size(int *width, int *height)
        if (ioctl(0, TIOCGWINSZ, &ws) < 0)
                return FALSE;
 
+       if (ws.ws_row == 0 && ws.ws_col == 0)
+               return FALSE;
+
        *width = ws.ws_col;
         *height = ws.ws_row;