diff --git a/lib/tfw/components/terminado_mini_server.py b/lib/tfw/components/terminado_mini_server.py index 26afe31..691099a 100644 --- a/lib/tfw/components/terminado_mini_server.py +++ b/lib/tfw/components/terminado_mini_server.py @@ -10,16 +10,20 @@ log = logging.getLogger(__name__) class TerminadoMiniServer: def __init__(self, url, port, workdir, shellcmd): self.port = port - self.term_manager = SingleTermManager(shell_command=shellcmd, - term_settings={'cwd': workdir}) + self._term_manager = SingleTermManager(shell_command=shellcmd, + term_settings={'cwd': workdir}) self.application = Application( [( url, TerminadoMiniServer.CORSTermSocket, - {'term_manager': self.term_manager} + {'term_manager': self._term_manager} )] ) + @property + def term_manager(self): + return self._term_manager + @property def pty(self): return self.term_manager.terminal.ptyproc