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:
Paul Gauthier 2023-05-11 20:44:01 -07:00
parent 71116a771b
commit 0ef2790464

View file

@ -89,7 +89,7 @@ def main(args=None):
coder.run()
console = Console()
console.clear()
console.reset()
if __name__ == "__main__":