equal
deleted
inserted
replaced
32 override def flush(): Unit = |
32 override def flush(): Unit = |
33 { |
33 { |
34 val s = buf.synchronized { val s = buf.toString; buf.clear(); s } |
34 val s = buf.synchronized { val s = buf.toString; buf.clear(); s } |
35 val str = UTF8.decode_permissive(s) |
35 val str = UTF8.decode_permissive(s) |
36 GUI_Thread.later { |
36 GUI_Thread.later { |
37 if (global_out == null) System.out.print(str) |
37 if (global_out == null) java.lang.System.out.print(str) |
38 else global_out.writeAttrs(null, str) |
38 else global_out.writeAttrs(null, str) |
39 } |
39 } |
40 Time.seconds(0.01).sleep() // FIXME adhoc delay to avoid loosing output |
40 Time.seconds(0.01).sleep() // FIXME adhoc delay to avoid loosing output |
41 } |
41 } |
42 |
42 |