From 74a29b667f4748fa295c4751653a86d8e0c8e7bf Mon Sep 17 00:00:00 2001 From: Z Date: Tue, 30 Apr 2024 22:23:41 -0600 Subject: [PATCH] Color Codes Change Color codes to some compatibles with the shells froms BSD Unix like systems. Tested on FreeBSD 14.0 and macOS 13 & 14 --- rpcenum | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/rpcenum b/rpcenum index d0c4800..b99138d 100755 --- a/rpcenum +++ b/rpcenum @@ -3,14 +3,15 @@ # Author: Marcelo Vázquez (aka S4vitar) #Colours -greenColour="\e[0;32m\033[1m" -endColour="\033[0m\e[0m" -redColour="\e[0;31m\033[1m" -blueColour="\e[0;34m\033[1m" -yellowColour="\e[0;33m\033[1m" -purpleColour="\e[0;35m\033[1m" -turquoiseColour="\e[0;36m\033[1m" -grayColour="\e[0;37m\033[1m" +greenColour=$(tput setaf 2; tput bold) +endColour=$(tput sgr0) +redColour=$(tput setaf 1; tput bold) +blueColour=$(tput setaf 4; tput bold) +yellowColour=$(tput setaf 3; tput bold) +purpleColour=$(tput setaf 5; tput bold) +turquoiseColour=$(tput setaf 6; tput bold) +grayColour=$(tput setaf 7; tput bold) + declare -r tmp_file="/dev/shm/tmp_file" declare -r tmp_file2="/dev/shm/tmp_file2"