LINES can be any number. No restriction. COLS should be > 4.
authorElan Amir <elan@ucbvax.Berkeley.EDU>
Fri, 16 Apr 1993 05:43:41 +0000 (21:43 -0800)
committerElan Amir <elan@ucbvax.Berkeley.EDU>
Fri, 16 Apr 1993 05:43:41 +0000 (21:43 -0800)
SCCS-vsn: lib/libcurses/setterm.c 5.17

usr/src/lib/libcurses/setterm.c

index 9e4e3cb..72cc8d2 100644 (file)
@@ -6,7 +6,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)setterm.c  5.16 (Berkeley) %G%";
+static char sccsid[] = "@(#)setterm.c  5.17 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <sys/ioctl.h>
 #endif /* not lint */
 
 #include <sys/ioctl.h>
@@ -83,10 +83,9 @@ setterm(type)
                COLS = strtol(p, NULL, 10);
 
        /*
                COLS = strtol(p, NULL, 10);
 
        /*
-        * XXX
-        * Historically, curses fails if rows <= 5, cols <= 4.
+        * Want cols > 4, otherwise things will fail.
         */
         */
-       if (LINES <= 5 || COLS <= 4)
+       if (COLS <= 4)
                return (ERR);
 
 #ifdef DEBUG
                return (ERR);
 
 #ifdef DEBUG