diff options
author | christos <christos@NetBSD.org> | 2020-11-10 22:52:45 +0000 |
---|---|---|
committer | christos <christos@NetBSD.org> | 2020-11-10 22:52:45 +0000 |
commit | 2acc6cef51a7257648a80270cf2c631128bcffd1 (patch) | |
tree | 3b164938161bc24a68b4ba96be1d070e47b16972 | |
parent | bbc21d58a8095246dfc216156a3ed5c7241fc411 (diff) | |
download | bsdgames-darwin-2acc6cef51a7257648a80270cf2c631128bcffd1.tar.gz bsdgames-darwin-2acc6cef51a7257648a80270cf2c631128bcffd1.tar.zst bsdgames-darwin-2acc6cef51a7257648a80270cf2c631128bcffd1.zip |
don't segv if the terminal is too big.
-rw-r--r-- | warp/term.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/warp/term.c b/warp/term.c index 34851566..47a230ed 100644 --- a/warp/term.c +++ b/warp/term.c @@ -286,6 +286,8 @@ term_set(char *tcbuf) /* temp area for "uncompiled" termcap entry */ no_can_do("dumb"); if (!scorespec && (LINES < 24 || COLS < 80)) no_can_do("puny"); + if (LINES > 25) + no_can_do("humongus"); crmode(); raw(); |