(init_display) [HAVE_LIBNCURSES]: If X, call tgetent.
This commit is contained in:
parent
71012575d0
commit
039e5d714c
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue