From 200166ff84dc3b1032b270b61d0a97880fb1649a Mon Sep 17 00:00:00 2001 From: Thorsten Lockert Date: Thu, 5 Sep 1996 05:09:12 +0000 Subject: Move fflush() from signal handler into endwin(), that way it will work in some other common situations too. --- lib/libcurses/lib_endwin.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/libcurses/lib_endwin.c') diff --git a/lib/libcurses/lib_endwin.c b/lib/libcurses/lib_endwin.c index 065b5c7567b..bda6e1949b8 100644 --- a/lib/libcurses/lib_endwin.c +++ b/lib/libcurses/lib_endwin.c @@ -51,5 +51,7 @@ endwin(void) if (curscr && (curscr->_attrs != A_NORMAL)) vidattr(curscr->_attrs = A_NORMAL); + fflush(SP->_ofp); + return(reset_shell_mode()); } -- cgit v1.2.3