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(
|
self.process = await asyncio.create_subprocess_exec(
|
||||||
"docker",
|
"docker",
|
||||||
"exec",
|
"exec",
|
||||||
"-it",
|
"-i",
|
||||||
|
"-e",
|
||||||
|
"TERM=xterm",
|
||||||
self.container_id,
|
self.container_id,
|
||||||
"/bin/sh",
|
"/bin/bash",
|
||||||
"-c",
|
"-i",
|
||||||
"exec bash -l || exec sh -l",
|
"-l",
|
||||||
stdin=asyncio.subprocess.PIPE,
|
stdin=asyncio.subprocess.PIPE,
|
||||||
stdout=asyncio.subprocess.PIPE,
|
stdout=asyncio.subprocess.PIPE,
|
||||||
stderr=asyncio.subprocess.STDOUT,
|
stderr=asyncio.subprocess.STDOUT,
|
||||||
|
|||||||
Reference in New Issue
Block a user