Commit 1c13e818 authored by Gero Müller's avatar Gero Müller
Browse files

close terminal

parent 6c0666e9
......@@ -30,6 +30,8 @@ class TerminalController(AbstractController):
@cherrypy.expose
def close(self, tid):
self.release_session()
terminal = self._terminal(tid)
terminal.close()
self.extension.clear_workspace_instance("Terminal", tid)
@cherrypy.expose
......@@ -51,7 +53,7 @@ class TerminalController(AbstractController):
self.release_session()
terminal = self._terminal(tid)
self.release_database()
terminal.write(input_data, 0.1)
terminal.write(input_data)
@cherrypy.expose
def read(self, tid, timeout=10):
......
......@@ -91,6 +91,6 @@ class Terminal(object):
else:
return returncode, ""
def write(self, input_data, timeout=0.05):
def write(self, input_data):
fin = self.__master_stdin.fileno()
os.write(fin, input_data)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment