mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 08:14:59 +00:00
fix: disable pretty output for dumb terminals
This commit is contained in:
parent
e6be69ec6d
commit
d887db4c18
1 changed files with 5 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue