mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
aider: Replaced console.clear()
with console.reset()
to disable funky terminal modes.
# Context: USER: i don't want to clear the screen. just disable any funky terminal modes ASSISTANT: I apologize for the confusion. If you want to disable any funky terminal modes without clearing the screen, you can use the `rich` library's `reset()` method. Here's the change for `aider/main.py`: ```python aider/main.py <<<<<<< ORIGINAL coder.run() console = Console() console.clear() ======= coder.run() console = Console() console.reset() >>>>>>> UPDATED ``` This change replaces the `console.clear()` call with `console.reset()` at the end of the `main()` function to reset the terminal without clearing the screen.
This commit is contained in:
parent
71116a771b
commit
0ef2790464
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ def main(args=None):
|
|||
|
||||
coder.run()
|
||||
console = Console()
|
||||
console.clear()
|
||||
console.reset()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue