From d2284447c347b5ded81287c216a5e12255a790f0 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sun, 28 May 2023 06:12:06 -0700 Subject: [PATCH] Only no_color, not force_term --- aider/io.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/aider/io.py b/aider/io.py index c4821cffa..b76d34543 100644 --- a/aider/io.py +++ b/aider/io.py @@ -104,7 +104,10 @@ class InputOutput: else: self.chat_history_file = None - self.console = Console(force_terminal=not pretty, no_color=not pretty) + if pretty: + self.console = Console() + else: + self.console = Console(no_color=True) current_time = datetime.now().strftime("%Y-%m-%d %H:%M:%S") self.append_chat_history(f"\n# aider chat started at {current_time}\n\n")