From cf0893ca025f025fb6caff67b41318b90d6d0360 Mon Sep 17 00:00:00 2001 From: PerseoGI Date: Fri, 22 Nov 2024 12:02:41 +0100 Subject: [PATCH] Follow issue reference https://github.com/paramiko/paramiko/issues/2474#issuecomment-2493435394 --- conan/internal/runner/ssh.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/conan/internal/runner/ssh.py b/conan/internal/runner/ssh.py index f91cea4fd08..62a2e7ed0ef 100644 --- a/conan/internal/runner/ssh.py +++ b/conan/internal/runner/ssh.py @@ -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")