add error case for too small terminal window
This commit is contained in:
parent
7e24d35a95
commit
9b6c7f7540
@ -286,6 +286,8 @@ int main(int argc, char **argv) {
|
||||
int y,x;
|
||||
getmaxyx(stdscr, y, x);
|
||||
if (y < 42 || x < 100) {
|
||||
endwin();
|
||||
perror("terminal window too small");
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user