mirror of
https://github.com/VARCem/PDCurses.git
synced 2026-09-24 15:55:14 +00:00
Test for screens too small for ptest.
This commit is contained in:
@@ -103,6 +103,16 @@ int main(int argc, char **argv)
|
||||
#else
|
||||
initscr();
|
||||
#endif
|
||||
|
||||
if (COLS < 70 || LINES < 23)
|
||||
{
|
||||
printw("A window at least 70x23 is required for this demo");
|
||||
refresh();
|
||||
napms(5000);
|
||||
endwin();
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
backfill();
|
||||
|
||||
for (y = 0; y < 5; y++)
|
||||
|
||||
Reference in New Issue
Block a user