fixed clear lastline when quitting
authorEdward Wang <edward@ucbvax.Berkeley.EDU>
Wed, 9 Nov 1983 07:58:29 +0000 (23:58 -0800)
committerEdward Wang <edward@ucbvax.Berkeley.EDU>
Wed, 9 Nov 1983 07:58:29 +0000 (23:58 -0800)
SCCS-vsn: games/sail/pl_7.c 2.3

usr/src/games/sail/pl_7.c

index 6b8ad81..f7a4009 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef lint
 #ifndef lint
-static char *sccsid = "@(#)pl_7.c      2.2 83/11/08";
+static char *sccsid = "@(#)pl_7.c      2.3 83/11/08";
 #endif
 
 #include "player.h"
 #endif
 
 #include "player.h"
@@ -33,10 +33,9 @@ initscreen()
 cleanupscreen()
 {
        if (done_curses) {
 cleanupscreen()
 {
        if (done_curses) {
+               (void) wmove(scroll_w, SCROLL_Y - 1, 0);
+               (void) wclrtoeol(scroll_w);
                draw_screen();
                draw_screen();
-               (void) move(LINES - 1, 0);
-               (void) clrtoeol();
-               (void) refresh();
                endwin();
        }
 }
                endwin();
        }
 }