Skip to content

Commit cf0893c

Browse files
committed
Follow issue reference
paramiko/paramiko#2474 (comment)
1 parent b5fb434 commit cf0893c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

conan/internal/runner/ssh.py

+3-1
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)