How to use the terminado.UniqueTermManager function in terminado

To help you get started, we’ve selected a few terminado examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SandstoneHPC / sandstone-ide / sandstone / apps / webterminal / urls.py View on Github external
import terminado
from sandstone.apps.webterminal.handlers import AuthTermSocket
from sandstone import settings


shell_command = settings.WEB_TERMINAL_SHELL_CMD
extra_env = settings.WEB_TERMINAL_EXTRA_ENV

term_manager = terminado.UniqueTermManager(
    max_terminals=3,
    shell_command=shell_command,
    extra_env=extra_env)

URL_SCHEMA = [
            (r"/terminal/a/term", AuthTermSocket,
                    {'term_manager': term_manager})
        ]

terminado

Tornado websocket backend for the Xterm.js Javascript terminal emulator library.

BSD-2-Clause
Latest version published 9 months ago

Package Health Score

86 / 100
Full package analysis

Similar packages