From 2de786a651e8830ec959ef7bd24f963170c8973c Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Tue, 9 May 2023 09:48:59 -0700 Subject: [PATCH] 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. --- coder.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/coder.py b/coder.py index b35f4e9c0..4c9581ba6 100755 --- a/coder.py +++ b/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) \ No newline at end of file