changeset 15273:db889dd732a1

(init_display) [HAVE_LIBNCURSES]: If X, call tgetent.
author Karl Heuer <kwzh@gnu.org>
date Tue, 21 May 1996 17:32:00 +0000
parents f32de56357a1
children f7c5a03c6393
files src/dispnew.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/dispnew.c	Tue May 21 17:29:20 1996 +0000
+++ b/src/dispnew.c	Tue May 21 17:32:00 1996 +0000
@@ -2511,6 +2511,12 @@
 #else
       Vwindow_system_version = make_number (10);
 #endif
+#if defined (LINUX) && defined (HAVE_LIBNCURSES)
+      /* In some versions of ncurses,
+	 tparm crashes if we have not called tgetent.
+	 So call tgetent.  */
+      { char b[2044]; tgetent (b, "xterm");}
+#endif
       return;
     }
 #endif /* HAVE_X_WINDOWS */