changeset 10332:e14daed4a820

(term_init): Fatal error if screen is too small.
author Richard M. Stallman <rms@gnu.org>
date Wed, 04 Jan 1995 19:09:36 +0000
parents 2ae69efc3e8b
children 67a1a793add2
files src/term.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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");