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:
Paul Gauthier 2023-05-09 09:48:59 -07:00
parent 8c88d0fca8
commit 2de786a651

View file

@ -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)