     """
 
   socket.on 'edit', (s, p) -> # s:current line  p:cursor position in s
-    toInterpreter """
-      <?xml version="1.0" encoding="utf-8"?>
+    toInterpreter X + """
       <Command>
         <cmd>Edit</cmd>
         <id>0</id>

    log 'from browser: ' + JSON.stringify(packet.data)[..1000]
    onevent.apply socket, [packet]

  socket.on 'exec', (s, trace) ->
    toInterpreter """
      <?xml version="1.0" encoding="utf-8"?>
      <Command>
        <cmd>Execute</cmd>
        <id>0</id>

    """

  socket.on 'save', (win, text) ->
    toInterpreter X + """
      <Command>
        <cmd>SaveChanges</cmd>
        <id>0</id>
