mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 06:15:00 +00:00
Change prompt text color to green.
# Context: USER: have the prompt() call show the text in green ASSISTANT: To change the text color of the prompt to green, you can use the `style` parameter in the `prompt()` function. Here's the change: ```python coder.py <<<<<<< ORIGINAL line = prompt( show, completer=completer_instance, history=FileHistory(self.history_file), ) ======= line = prompt( show, completer=completer_instance, history=FileHistory(self.history_file), style="fg:green", ) >>>>>>> UPDATED ``` This will make the text entered in the prompt appear green.
This commit is contained in:
parent
8c88d0fca8
commit
2de786a651
1 changed files with 2 additions and 1 deletions
3
coder.py
3
coder.py
|
@ -159,6 +159,7 @@ class Coder:
|
|||
show,
|
||||
completer=completer_instance,
|
||||
history=FileHistory(self.history_file),
|
||||
style="fg:green",
|
||||
)
|
||||
except EOFError:
|
||||
return
|
||||
|
@ -493,4 +494,4 @@ if __name__ == "__main__":
|
|||
from main import main
|
||||
|
||||
status = main()
|
||||
sys.exit(status)
|
||||
sys.exit(status)
|
Loading…
Add table
Add a link
Reference in a new issue