This commit is contained in:
2026-07-25 17:28:23 -05:00
parent b04e5b706d
commit d47a88587c
7 changed files with 211 additions and 45 deletions
+48 -4
View File
@@ -1,10 +1,56 @@
#!/usr/bin/env bash
clear
if [ -d /opt/idssys/defaults ]; then
if [ -r /opt/idssys/defaults/colors.inc ]; then
source /opt/idssys/defaults/colors.inc
else
source /dev/stdin <<< "$(curl -sL https://git.schroedercity.com/voltron/Misc-Scripts/raw/master/colors.inc)"
declare -A idsCL
idsCL[Default]="\e[39m"
idsCL[White]="\e[97m"
idsCL[LightGray]="\e[37m"
idsCL[DarkGray]="\e[90m"
idsCL[Black]="\e[30m"
idsCL[Red]="\e[31m"
idsCL[RedBold]="\e[31;1m"
idsCL[LightRed]="\e[91m"
idsCL[Magenta]="\e[35m"
idsCL[LightMagenta]="\e[95m"
idsCL[Blue]="\e[34m"
idsCL[LightBlue]="\e[94m"
idsCL[Cyan]="\e[36m"
idsCL[LightCyan]="\e[96m"
idsCL[Green]="\e[32m"
idsCL[LightGreen]="\e[92m"
idsCL[Yellow]="\e[33m"
idsCL[LightYellow]="\e[93m"
declare -A idsBG
idsBG[Default]="\e[49m"
idsBG[Black]="\e[40m"
idsBG[Red]="\e[41m"
idsBG[Green]="\e[42m"
idsBG[Yellow]="\e[43m"
idsBG[Blue]="\e[44m"
idsBG[Magenta]="\e[45m"
idsBG[Cyan]="\e[46m"
idsBG[LightGray]="\e[47m"
idsBG[DarkGray]="\e[100m"
idsBG[LightRed]="\e[101m"
idsBG[LightGreen]="\e[102m"
idsBG[LightYellow]="\e[103m"
idsBG[LightBlue]="\e[104m"
idsBG[LightMagenta]="\e[105m"
idsBG[LightCyan]="\e[106m"
idsBG[White]="\e[107m"
declare -A idsST
idsST[Reset]="\e[0m"
idsST[Bold]="\e[1m"
idsST[Dim]="\e[2m"
idsST[UnderLine]="\e[4m"
idsST[Blink]="\e[5m"
idsST[Invert]="\e[7m"
idsST[Hidden]="\e[8m"
fi
echo ""
@@ -43,5 +89,3 @@ for i in "${!idsST[@]}" ; do
echo -e "${idsST[$i]}${i}${idsBG[Default]} = \${idsST[$i]}"
done