Replace UniqueTermManager with SingleTermManager to support pty manipulation

This commit is contained in:
Kristóf Tóth 2018-03-02 18:01:00 +01:00
parent b7f9acd3b0
commit bddc10269b

View File

@ -1,6 +1,6 @@
from tornado.ioloop import IOLoop
from tornado.web import Application
from terminado import TermSocket, UniqueTermManager
from terminado import TermSocket, SingleTermManager
from tfw.config import tfwenv
from tfw.config.logs import logging
@ -10,7 +10,7 @@ log = logging.getLogger(__name__)
class TerminadoMiniServer:
def __init__(self, url, port, workdir, shellcmd):
self.port = port
self.term_manager = UniqueTermManager(shell_command=shellcmd,
self.term_manager = SingleTermManager(shell_command=shellcmd,
term_settings={'cwd': workdir})
self.application = Application(
[(