diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2015-03-15 05:42:35 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2015-03-16 03:04:01 +0100 |
commit | 2c0e9f747d2c3c842cefaafc38f03646ea7569ab (patch) | |
tree | 54547dd956d6868b7ec8d80789358c2057305cce /src/interface-curses.cpp | |
parent | 14ec511f29eaa05a68fe2160ce79f8f5b7f160fa (diff) | |
download | sciteco-2c0e9f747d2c3c842cefaafc38f03646ea7569ab.tar.gz |
when initializing ncurses, make sure that the output stream is fully buffered
Diffstat (limited to 'src/interface-curses.cpp')
-rw-r--r-- | src/interface-curses.cpp | 1 |
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(); } |