Here's a minor tweak to flush cout before disabling cout buffering. This
seems like something the runtime library ought to do, but it makes a
difference on my system.


-- 
"The secret to creativity is knowing how to hide your sources."
   Albert Einstein


http://soundcloud.com/davidlamkins
http://reverbnation.com/lamkins
http://reverbnation.com/lcw
http://lamkins-guitar.com/
http://lamkins.net/
http://successful-lisp.com/
Index: src/Output.cc
===================================================================
--- src/Output.cc	(revision 476)
+++ src/Output.cc	(working copy)
@@ -194,7 +194,11 @@
 void
 Output::init(bool logit)
 {
-   if (!isatty(fileno(stdout))) cout.setf(ios::unitbuf);
+   if (!isatty(fileno(stdout)))
+      {
+        cout.flush();
+        cout.setf(ios::unitbuf);
+      }
 
 #if CURSES_USABLE
 

Reply via email to