From 3a1fad7639e9f590361d14d6d7fd6196f9b91841 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sat, 23 Nov 2024 23:40:58 +0000 Subject: [PATCH] revert --- lgsm/modules/core_messages.sh | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/lgsm/modules/core_messages.sh b/lgsm/modules/core_messages.sh index 3d6035031..d92418b57 100644 --- a/lgsm/modules/core_messages.sh +++ b/lgsm/modules/core_messages.sh @@ -231,47 +231,57 @@ fn_print_header() { # Complete! fn_print_complete() { - fn_print_message "Complete!" "${green}" "$*" + echo -en "${green}Complete!${default} $*${default}" + fn_sleep_time } fn_print_complete_nl() { - fn_print_message_nl "Complete!" "${green}" "$*" + echo -e "${green}Complete!${default} $*${default}" + fn_sleep_time } # Failure! fn_print_failure() { - fn_print_message "Failure!" "${red}" "$*" + echo -en "${red}Failure!${default} $*${default}" + fn_sleep_time } fn_print_failure_nl() { - fn_print_message_nl "Failure!" "${red}" "$*" + echo -e "${red}Failure!${default} $*${default}" + fn_sleep_time } # Error! fn_print_error2() { - fn_print_message "Error!" "${red}" "$*" + echo -en "${red}Error!${default} $*${default}" + fn_sleep_time } fn_print_error2_nl() { - fn_print_message_nl "Error!" "${red}" "$*" + echo -e "${red}Error!${default} $*${default}" + fn_sleep_time } # Warning! fn_print_warning() { - fn_print_message "Warning!" "${lightyellow}" "$*" + echo -en "${lightyellow}Warning!${default} $*${default}" + fn_sleep_time } fn_print_warning_nl() { - fn_print_message_nl "Warning!" "${lightyellow}" "$*" + echo -e "${lightyellow}Warning!${default} $*${default}" + fn_sleep_time } # Information! fn_print_information() { - fn_print_message "Information!" "${cyan}" "$*" + echo -en "${cyan}Information!${default} $*${default}" + fn_sleep_time } fn_print_information_nl() { - fn_print_message_nl "Information!" "${cyan}" "$*" + echo -e "${cyan}Information!${default} $*${default}" + fn_sleep_time } # Y/N Prompt