[Lsb-messages] /var/www/bzr/lsb/devel/olver-core-tests r102: Manually flush stdout in the terminal agent (bug 3791).

Jeff Licquia licquia at linuxfoundation.org
Wed Aug 14 13:57:53 UTC 2013


------------------------------------------------------------
revno: 102
author: Karel Srot <ksrot at redhat.com>
committer: Jeff Licquia <licquia at linuxfoundation.org>
branch nick: olver-core-tests
timestamp: Wed 2013-08-14 09:57:53 -0400
message:
  Manually flush stdout in the terminal agent (bug 3791).
  
  This is now required because of an upstream change which slightly
  changes the buffering behavior in ncurses, and requires manually
  flushing when mixing stdio calls with ncurses calls.
modified:
  src/agent/ncurses/terminal/terminal_agent.c
-------------- next part --------------
=== modified file 'src/agent/ncurses/terminal/terminal_agent.c'
--- a/src/agent/ncurses/terminal/terminal_agent.c	2012-02-14 14:30:55 +0000
+++ b/src/agent/ncurses/terminal/terminal_agent.c	2013-08-14 13:57:53 +0000
@@ -295,6 +295,7 @@
     START_TARGET_OPERATION(thread);
     res = vidattr(ch);
     putchar(letter);
+    fflush(stdout);
     refresh();
     END_TARGET_OPERATION(thread);
     
@@ -313,6 +314,7 @@
     START_TARGET_OPERATION(thread);
     res = vidputs(ch, putchar);
     putchar(letter);
+    fflush(stdout);
     refresh();
     END_TARGET_OPERATION(thread);
     



More information about the lsb-messages mailing list