equal
deleted
inserted
replaced
161 while (!finished) { |
161 while (!finished) { |
162 try { |
162 try { |
163 //{{{ |
163 //{{{ |
164 receive { |
164 receive { |
165 case Input_Text(text) => |
165 case Input_Text(text) => |
166 // FIXME echo input?! |
|
167 writer.write(text) |
166 writer.write(text) |
168 writer.flush |
167 writer.flush |
169 case Close => |
168 case Close => |
170 writer.close |
169 writer.close |
171 finished = true |
170 finished = true |
363 command_input ! Input_Chunks(Standard_System.string_bytes(name) :: args.toList) |
362 command_input ! Input_Chunks(Standard_System.string_bytes(name) :: args.toList) |
364 |
363 |
365 def input(name: String, args: String*): Unit = |
364 def input(name: String, args: String*): Unit = |
366 input_bytes(name, args.map(Standard_System.string_bytes): _*) |
365 input_bytes(name, args.map(Standard_System.string_bytes): _*) |
367 |
366 |
368 def close(): Unit = command_input ! Close |
367 def close(): Unit = { standard_input ! Close; command_input ! Close } |
369 } |
368 } |