diff options
author | Richard M. Stallman <rms@gnu.org> | 1995-01-04 19:09:36 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1995-01-04 19:09:36 +0000 |
commit | 6563e9efde182d2d3322133ccff01ad8785270bd (patch) | |
tree | 99cbaf4d60adcc24854835dc3486fb0c8e1bea69 /src/term.c | |
parent | 7d9687206ac780a08fd03882758ffb43eaaeb6e4 (diff) | |
download | emacs-6563e9efde182d2d3322133ccff01ad8785270bd.tar.gz |
(term_init): Fatal error if screen is too small.
Diffstat (limited to 'src/term.c')
-rw-r--r-- | src/term.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/term.c b/src/term.c index 3258191bfce..ae0032be59a 100644 --- a/src/term.c +++ b/src/term.c @@ -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"); |