mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 21:31:31 +00:00
Replace UniqueTermManager with SingleTermManager to support pty manipulation
This commit is contained in:
parent
b7f9acd3b0
commit
bddc10269b
@ -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(
|
||||
[(
|
||||
|
Loading…
Reference in New Issue
Block a user