src/Pure/System/isabelle_process.scala
changeset 50117 32755e357a51
parent 49677 c4e2762a265c
child 50201 c26369c9eda6
equal deleted inserted replaced
50116:88b971fca902 50117:32755e357a51
   391   def input_raw(text: String): Unit = standard_input._2 ! Input_Text(text)
   391   def input_raw(text: String): Unit = standard_input._2 ! Input_Text(text)
   392 
   392 
   393   def input_bytes(name: String, args: Array[Byte]*): Unit =
   393   def input_bytes(name: String, args: Array[Byte]*): Unit =
   394     command_input._2 ! Input_Chunks(Standard_System.string_bytes(name) :: args.toList)
   394     command_input._2 ! Input_Chunks(Standard_System.string_bytes(name) :: args.toList)
   395 
   395 
   396   def input(name: String, args: String*): Unit =
   396   def input(name: String, args: String*)
   397   {
   397   {
   398     receiver(new Input(name, args.toList))
   398     receiver(new Input(name, args.toList))
   399     input_bytes(name, args.map(Standard_System.string_bytes): _*)
   399     input_bytes(name, args.map(Standard_System.string_bytes): _*)
   400   }
   400   }
   401 
   401 
   402   def close_input(): Unit = { close(command_input); close(standard_input) }
   402   def options(opts: Options): Unit =
       
   403     input("Isabelle_Process.options", YXML.string_of_body(opts.encode))
       
   404 
       
   405   def close_input()
       
   406   {
       
   407     close(command_input)
       
   408     close(standard_input)
       
   409   }
   403 }
   410 }