diff src/dispnew.c @ 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 a295c26b5d67
children 7db3a832db9e
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 */