1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-05 11:45:45 +00:00

(term_init): Fatal error if screen is too small.

This commit is contained in:
Richard M. Stallman 1995-01-04 19:09:36 +00:00
parent 6a14015905
commit ee7a2de471

View File

@ -1527,6 +1527,11 @@ to do `unset TERMCAP' (C-shell: `unsetenv TERMCAP') as well.\n",
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");