public static void quit(ProcessWrapper proc) { proc.sendLine("quit"); proc.readNextLine(); proc.stopAllReadingAndQuit(); }
//command_name OR, just the entire command (created from above or manually) public static void SendCommand(string command_name, ProcessWrapper proc) { proc.sendLine(command_name); }