use parent tty width
This commit is contained in:
parent
3d3b3cfba4
commit
e3d0de332f
|
|
@ -69,7 +69,7 @@ def run_interactive_command(cmd: List[str]) -> Tuple[bytes, int]:
|
||||||
except (AttributeError, io.UnsupportedOperation):
|
except (AttributeError, io.UnsupportedOperation):
|
||||||
stdin_fd = None
|
stdin_fd = None
|
||||||
|
|
||||||
# Set up environment variables for the subprocess
|
# Set up environment variables for the subprocess using detected terminal size
|
||||||
env = os.environ.copy()
|
env = os.environ.copy()
|
||||||
env.update({
|
env.update({
|
||||||
'DEBIAN_FRONTEND': 'noninteractive',
|
'DEBIAN_FRONTEND': 'noninteractive',
|
||||||
|
|
@ -78,7 +78,8 @@ def run_interactive_command(cmd: List[str]) -> Tuple[bytes, int]:
|
||||||
'CI': 'true',
|
'CI': 'true',
|
||||||
'LANG': 'C.UTF-8',
|
'LANG': 'C.UTF-8',
|
||||||
'LC_ALL': 'C.UTF-8',
|
'LC_ALL': 'C.UTF-8',
|
||||||
'COLUMNS': '120',
|
'COLUMNS': str(cols),
|
||||||
|
'LINES': str(rows),
|
||||||
'FORCE_COLOR': '1',
|
'FORCE_COLOR': '1',
|
||||||
'GIT_TERMINAL_PROMPT': '0',
|
'GIT_TERMINAL_PROMPT': '0',
|
||||||
'PYTHONDONTWRITEBYTECODE': '1',
|
'PYTHONDONTWRITEBYTECODE': '1',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue