mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 02:05:00 +00:00
![]() # Context: USER: move the red and green colors for tool and tool_error into self. properties. add args to init with red and green defaults. ASSISTANT: To make the changes, I will modify the `aider/io.py` file. Here are the changes: ```python aider/io.py <<<<<<< ORIGINAL class InputOutput: def __init__( self, pretty=True, yes=False, input_history_file=None, chat_history_file=None, input=None, output=None, ): ======= class InputOutput: def __init__( self, pretty=True, yes=False, input_history_file=None, chat_history_file=None, input=None, output=None, tool_color="green", tool_error_color="red", ): self.tool_color = tool_color self.tool_error_color = tool_error_color >>>>>>> UPDATED ``` ```python aider/io.py <<<<<<< ORIGINAL style = Style.from_dict({"": "green"}) ======= style = Style.from_dict({"": self.tool_color}) >>>>>>> UPDATED ``` ```python aider/io.py <<<<<<< ORIGINAL self.console.print(message, style="red") ======= self.console.print(message, style=self.tool_error_color) >>>>>>> UPDATED ``` |
||
---|---|---|
.. | ||
__init__.py | ||
coder.py | ||
commands.py | ||
dump.py | ||
io.py | ||
main.py | ||
prompts.py | ||
repomap.py | ||
utils.py |