Skip to content

Commit

Permalink
Follow issue reference
Browse files Browse the repository at this point in the history
  • Loading branch information
perseoGI committed Nov 25, 2024
1 parent f31a204 commit 6c7b1b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion conan/internal/runner/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,9 @@ def run_interactive_command(self, command: str, is_remote_windows: bool) -> bool
channel = self.client.get_transport().open_session()
if sys.stdout.isatty():
width, height = os.get_terminal_size()
channel.get_pty(width=width, height=height)
else:
width, height = 80, 24
channel.get_pty(width=width, height=height)

channel.exec_command(command)
stdout = channel.makefile("r")
Expand Down

0 comments on commit 6c7b1b8

Please sign in to comment.