From 2c0e9f747d2c3c842cefaafc38f03646ea7569ab Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sun, 15 Mar 2015 05:42:35 +0100 Subject: when initializing ncurses, make sure that the output stream is fully buffered --- src/interface-curses.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/interface-curses.cpp b/src/interface-curses.cpp index e331a92..28f6e70 100644 --- a/src/interface-curses.cpp +++ b/src/interface-curses.cpp @@ -163,6 +163,7 @@ InterfaceCurses::init_batch(void) */ screen_tty = g_fopen("/dev/null", "r+b"); g_assert(screen_tty != NULL); + setvbuf(screen_tty, NULL, _IOFBF, 0); screen = newterm(NULL, screen_tty, screen_tty); def_shell_mode(); } -- cgit v1.2.3