src/Tools/jEdit/jedit_main/scala_console.scala
changeset 74023 fd4b4385ad3c
parent 73987 fc363a3b690a
child 74037 c13198575f75
equal deleted inserted replaced
74022:dfcef9ad5f45 74023:fd4b4385ad3c
    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