fix(terminal): remove TTY allocation, use interactive bash with TERM env var
This commit is contained in:
@@ -20,11 +20,13 @@ class TerminalSession:
|
||||
self.process = await asyncio.create_subprocess_exec(
|
||||
"docker",
|
||||
"exec",
|
||||
"-it",
|
||||
"-i",
|
||||
"-e",
|
||||
"TERM=xterm",
|
||||
self.container_id,
|
||||
"/bin/sh",
|
||||
"-c",
|
||||
"exec bash -l || exec sh -l",
|
||||
"/bin/bash",
|
||||
"-i",
|
||||
"-l",
|
||||
stdin=asyncio.subprocess.PIPE,
|
||||
stdout=asyncio.subprocess.PIPE,
|
||||
stderr=asyncio.subprocess.STDOUT,
|
||||
|
||||
Reference in New Issue
Block a user