+ if (COLS < 18 || LINES < 5) {
+ /*
+ * Insufficient room for the line with " Worm" and the
+ * score if fewer than 18 columns; insufficient room for
+ * anything much if fewer than 5 lines.
+ */
+ endwin();
+ errx(1, "screen too small");
+ }
+ if (argc == 2)
+ start_len = atoi(argv[1]);
+ if ((start_len <= 0) || (start_len > ((LINES-3) * (COLS-2)) / 3))
+ start_len = LENGTH;