summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1996-09-05 03:20:08 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1996-09-05 03:20:08 +0000
commit39bca9c58abca847296d50f91cf4572b78333962 (patch)
tree8ef04baeba6815ce791bde3fabf997943cbd5deb /lib
parentf1c9d5be235031f56a47dc8faaee18e78a3c5d01 (diff)
Add strategic fflush() before suspending on keyboard generated signal
Diffstat (limited to 'lib')
-rw-r--r--lib/libcurses/lib_tstp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libcurses/lib_tstp.c b/lib/libcurses/lib_tstp.c
index 73be68af51c..7adca9e8cfd 100644
--- a/lib/libcurses/lib_tstp.c
+++ b/lib/libcurses/lib_tstp.c
@@ -117,6 +117,7 @@ static void tstp(int dummy)
* original (pre-curses) modes.
*/
endwin();
+fflush(stdout);
/* Unblock SIGTSTP. */
(void)sigemptyset(&mask);