# HG changeset patch # User Richard M. Stallman # Date 789246576 0 # Node ID e14daed4a8207b0cd1ece8e51b86c91360c315c8 # Parent 2ae69efc3e8b1f80ca0fdabc2f82a90cb9f07d5b (term_init): Fatal error if screen is too small. diff -r 2ae69efc3e8b -r e14daed4a820 src/term.c --- a/src/term.c Wed Jan 04 19:08:56 1995 +0000 +++ b/src/term.c Wed Jan 04 19:09:36 1995 +0000 @@ -1527,6 +1527,11 @@ if (FRAME_HEIGHT (selected_frame) <= 0) FRAME_HEIGHT (selected_frame) = tgetnum ("li"); + if (FRAME_HEIGHT (selected_frame) < 3 + || FRAME_WIDTH (selected_frame) < 3) + fatal ("Screen size %dx%d is too small.\n", + FRAME_HEIGHT (selected_frame), FRAME_WIDTH (selected_frame)); + min_padding_speed = tgetnum ("pb"); TN_standout_width = tgetnum ("sg"); TabWidth = tgetnum ("tw");