From d887db4c18484c34aac0490e8d60bfc41f0d7f8c Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Fri, 10 Jan 2025 14:24:59 -0800 Subject: [PATCH] fix: disable pretty output for dumb terminals --- aider/io.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/aider/io.py b/aider/io.py index 5469800a9..6eaa0a756 100644 --- a/aider/io.py +++ b/aider/io.py @@ -251,8 +251,12 @@ class InputOutput: self.prompt_session = None self.is_dumb_terminal = is_dumb_terminal() + + if self.is_dumb_terminal: + self.pretty = False + fancy_input = False - if fancy_input and not self.is_dumb_terminal: + if fancy_input: # Initialize PromptSession only if we have a capable terminal session_kwargs = { "input": self.input,