add error case for too small terminal window

This commit is contained in:
smayzy 2026-03-31 15:52:20 +02:00
parent 7e24d35a95
commit 9b6c7f7540

View File

@ -286,6 +286,8 @@ int main(int argc, char **argv) {
int y,x; int y,x;
getmaxyx(stdscr, y, x); getmaxyx(stdscr, y, x);
if (y < 42 || x < 100) { if (y < 42 || x < 100) {
endwin();
perror("terminal window too small");
return 1; return 1;
} }