Added command colour configuration

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