src/Pure/System/tty_loop.scala
changeset 73367 77ef8bef0593
parent 73340 0ffcad1f6130
child 74141 bba35ad317ab
equal deleted inserted replaced
73366:5f388e514ab8 73367:77ef8bef0593
    28           else done = true
    28           else done = true
    29         }
    29         }
    30         if (result.nonEmpty) {
    30         if (result.nonEmpty) {
    31           System.out.print(result.toString)
    31           System.out.print(result.toString)
    32           System.out.flush()
    32           System.out.flush()
    33           result.clear
    33           result.clear()
    34         }
    34         }
    35         else {
    35         else {
    36           reader.close()
    36           reader.close()
    37           finished = true
    37           finished = true
    38         }
    38         }
    62     catch { case e: IOException => case Exn.Interrupt() => }
    62     catch { case e: IOException => case Exn.Interrupt() => }
    63   }
    63   }
    64 
    64 
    65   def join: Unit = { console_output.join; console_input.join }
    65   def join: Unit = { console_output.join; console_input.join }
    66 
    66 
    67   def cancel: Unit = console_input.cancel
    67   def cancel(): Unit = console_input.cancel()
    68 }
    68 }