]> andersk Git - moira.git/commitdiff
curses initscr does magic that newterm + set_term doesn't. (Like set
authordanw <danw>
Wed, 4 Aug 1999 15:10:23 +0000 (15:10 +0000)
committerdanw <danw>
Wed, 4 Aug 1999 15:10:23 +0000 (15:10 +0000)
up signal handlers for SIGTSTP and SIGCONT). Rather than trying to
duplicate that, just dispose of the screen returned by newterm and
then call initscr (knowing that it will succeed).

Fixes a display bug noticed by Matt.

clients/moira/menu.c

index 9897d97de0c0702985dad146a8feafd288d58e28..e04f958ea44ca1f0273a6586cd317ffc1d21572f 100644 (file)
@@ -131,6 +131,8 @@ void Start_menu(Menu *m)
     {
 #ifdef CURSES_HAS_NEWTERM
       set_term(scrn);
+      endwin();
+      initscr();
 #endif
       raw();           /* We parse & print everything ourselves */
       noecho();
This page took 0.04294 seconds and 5 git commands to generate.