Skip to content

Commit 6c7b1b8

Browse files
committed
Follow issue reference
paramiko/paramiko#2474 (comment)
1 parent f31a204 commit 6c7b1b8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

conan/internal/runner/ssh.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,9 @@ def run_interactive_command(self, command: str, is_remote_windows: bool) -> bool
332332
channel = self.client.get_transport().open_session()
333333
if sys.stdout.isatty():
334334
width, height = os.get_terminal_size()
335-
channel.get_pty(width=width, height=height)
335+
else:
336+
width, height = 80, 24
337+
channel.get_pty(width=width, height=height)
336338

337339
channel.exec_command(command)
338340
stdout = channel.makefile("r")

0 commit comments

Comments
 (0)