(init_display) [HAVE_LIBNCURSES]: If X, call tgetent.

This commit is contained in:
Karl Heuer 1996-05-21 17:32:00 +00:00
parent 71012575d0
commit 039e5d714c

View file

@ -2510,6 +2510,12 @@ init_display ()
Vwindow_system_version = make_number (11);
#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;
}