aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2015-03-15 05:42:35 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2015-03-16 03:04:01 +0100
commit2c0e9f747d2c3c842cefaafc38f03646ea7569ab (patch)
tree54547dd956d6868b7ec8d80789358c2057305cce
parent14ec511f29eaa05a68fe2160ce79f8f5b7f160fa (diff)
downloadsciteco-2c0e9f747d2c3c842cefaafc38f03646ea7569ab.tar.gz
when initializing ncurses, make sure that the output stream is fully buffered
-rw-r--r--src/interface-curses.cpp1
1 files changed, 1 insertions, 0 deletions
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();
}