Added command colour configuration

This commit is contained in:
2024-08-19 22:09:59 +02:00
parent 5bbc423840
commit 88167486ab
+2 -1
View File
@@ -293,7 +293,7 @@ def prompt_user_input(config, response):
response : str
The proposed command which is to be printed and may be executed by the user.
"""
print("Command: " + colored(response, 'blue'))
print("Command: " + colored(response, config["suggested_command_color"], attrs=['bold']))
if config["safety"]:
modify_text = ""
@@ -301,6 +301,7 @@ def prompt_user_input(config, response):
if config["modify"]:
modify_text = " [m]modify"
# TODO: Copy to clipboard flag
prompt_text = "Execute command? [Y]es [n]o" + modify_text + ": "
if os.name == "posix" and missing_posix_display():