package isabelle;
authorwenzelm
Sat, 15 Dec 2007 14:35:50 +0100
changeset 25643 2fdb26d45184
parent 25642 ebdff0dca2a5
child 25644 d30391cdd9d9
package isabelle; replaced outputWrapped by outputSync;
lib/classes/isabelle/IsabelleProcess.java
--- a/lib/classes/isabelle/IsabelleProcess.java	Sat Dec 15 13:08:33 2007 +0100
+++ b/lib/classes/isabelle/IsabelleProcess.java	Sat Dec 15 14:35:50 2007 +0100
@@ -17,6 +17,8 @@
  * I/O is fully asynchronous, with unrestricted buffers.  Text is encoded as UTF-8.
  */
 
+package isabelle;
+
 import java.io.*;
 import java.util.Locale;
 import java.util.concurrent.LinkedBlockingQueue;
@@ -195,19 +197,19 @@
         }
     }
 
-    private synchronized void outputWrapped(String cmd, String text) throws IsabelleProcessException
+    private synchronized void outputSync(String text) throws IsabelleProcessException
     {
-        output(" \\<^sync>\n; " + cmd + " " + encodeString(text) + " \\<^sync>;\n");
+        output(" \\<^sync>\n; " + text + " \\<^sync>;\n");
     }
 
     public synchronized void command(String text) throws IsabelleProcessException
     {
-        outputWrapped("Isabelle.command", text);
+        outputSync("Isabelle.command " + encodeString(text));
     }
 
     public synchronized void ML(String text) throws IsabelleProcessException
     {
-        outputWrapped("ML", text);
+        outputSync("ML " + encodeString(text));
     }