Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Disable buffering on stdout. (fixes #114)
  • Loading branch information
sorear committed Apr 15, 2012
1 parent a0c3f43 commit 1b64073
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Builtins.cs
Expand Up @@ -2864,7 +2864,9 @@ public class Blackhole : Variable {
new StreamWriter(Console.OpenStandardOutput(), Console.OutputEncoding);
[TrueGlobal] internal static StreamWriter stderr =
new StreamWriter(Console.OpenStandardError(), Console.OutputEncoding);
public static System.IO.TextWriter twriter_stdout() { return stdout; }
public static System.IO.TextWriter twriter_stdout() {
stdout.AutoFlush = true; return stdout;
}

public static System.IO.TextWriter twriter_stderr() {
stderr.AutoFlush = true; return stderr;
Expand Down

0 comments on commit 1b64073

Please sign in to comment.