
          $("#send_txt").val("");
      }

      function executeCommand(command) {
          if(websocket.readyState == websocket.OPEN){
              txt = command;
              txt = txt.replace(/^[ ]+/, "")  // strip whitespace at start
              txt = txt.replace(/\n$/, "")  // replace trailing newline
              tx_text = txt
			  if (txt.search(/^\.(save|write) /) != -1) {
				  tx_text = tx_text + "\n" + get_editor_value()
              } else if (txt.search(/^\.whatis (save|write) /) != -1