Parcourir la source

added fn_print_header and lightblue

Daniel Gibbs il y a 9 ans
Parent
commit
3ba4aa5e1c

+ 1 - 4
lgsm/functions/command_console.sh

@@ -9,10 +9,7 @@ local commandaction="Console"
 local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 
 check.sh
 check.sh
-echo ""
-echo "${gamename} Console"
-echo "================================="
-echo ""
+fn_print_header
 fn_print_information_nl "Press \"CTRL+b\" then \"d\" to exit console."
 fn_print_information_nl "Press \"CTRL+b\" then \"d\" to exit console."
 fn_print_warning_nl "Do NOT press CTRL+c to exit."
 fn_print_warning_nl "Do NOT press CTRL+c to exit."
 echo ""
 echo ""

+ 1 - 4
lgsm/functions/command_debug.sh

@@ -24,10 +24,7 @@ fix.sh
 info_distro.sh
 info_distro.sh
 # NOTE: Check if works with server without parms. Could be intergrated in to info_parms.sh
 # NOTE: Check if works with server without parms. Could be intergrated in to info_parms.sh
 fn_parms
 fn_parms
-echo ""
-echo "${gamename} Debug"
-echo "================================="
-echo ""
+fn_print_header
 echo -e "${blue}Distro:\t${default}${distroname}"
 echo -e "${blue}Distro:\t${default}${distroname}"
 echo -e "${blue}Arch:\t${default}${arch}"
 echo -e "${blue}Arch:\t${default}${arch}"
 echo -e "${blue}Kernel:\t${default}${kernel}"
 echo -e "${blue}Kernel:\t${default}${kernel}"

+ 16 - 7
lgsm/functions/core_messages.sh

@@ -13,16 +13,17 @@ if [ "${ansi}" != "off" ]; then
 	red="\e[31m"
 	red="\e[31m"
 	green="\e[32m"
 	green="\e[32m"
 	yellow="\e[33m"
 	yellow="\e[33m"
+	lightyellow="\e[93m"
 	blue="\e[34m"
 	blue="\e[34m"
+	lightblue="\e[94m"
 	magenta="\e[35m"
 	magenta="\e[35m"
 	cyan="\e[36m"
 	cyan="\e[36m"
-	lightyellow="\e[93m"
 	# carriage return & erase to end of line
 	# carriage return & erase to end of line
 	creeol="\r\033[K"
 	creeol="\r\033[K"
 fi
 fi
 
 
 # Log display
 # Log display
-##########
+########################
 ## Feb 28 14:56:58 ut99-server: Monitor:
 ## Feb 28 14:56:58 ut99-server: Monitor:
 fn_script_log(){
 fn_script_log(){
 	if [ -d "${scriptlogdir}" ]; then
 	if [ -d "${scriptlogdir}" ]; then
@@ -93,8 +94,8 @@ fn_script_log_info(){
 	fi
 	fi
 }
 }
 
 
-# On-Screen
-##########
+# On-Screen - Automated functions
+##################################
 
 
 # [ .... ]
 # [ .... ]
 fn_print_dots(){
 fn_print_dots(){
@@ -210,8 +211,16 @@ fn_print_info_nl(){
 	echo -en "\n"
 	echo -en "\n"
 }
 }
 
 
-# On-Screen full word
-##########
+# On-Screen - Interactive messages
+##################################
+
+# No More Room in Hell Debug
+# =================================
+fn_print_header(){
+	echo -en ""
+	echo -en "${lightblue}${servername} ${commandaction}"
+	echo -e "=================================${default}"
+}
 
 
 # Complete!
 # Complete!
 fn_print_complete(){
 fn_print_complete(){
@@ -259,7 +268,7 @@ fn_print_information_nl(){
 }
 }
 
 
 # On-Screen End of Line
 # On-Screen End of Line
-##########
+##################################
 
 
 # OK
 # OK
 fn_print_ok_eol(){
 fn_print_ok_eol(){