70 lines
1.5 KiB
Bash
Executable File
70 lines
1.5 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
|
|
declare -A idsCL
|
|
idsCL[Default]="\e[39m"
|
|
idsCL[Black]="\e[30m"
|
|
idsCL[Red]="\e[31m"
|
|
idsCL[RedBold]="\e[31;1m"
|
|
idsCL[Green]="\e[32m"
|
|
idsCL[Yellow]="\e[33m"
|
|
idsCL[Blue]="\e[34m"
|
|
idsCL[Magenta]="\e[35m"
|
|
idsCL[Cyan]="\e[36m"
|
|
idsCL[LightGray]="\e[37m"
|
|
idsCL[DarkGray]="\e[90m"
|
|
idsCL[LightRed]="\e[91m"
|
|
idsCL[LightGreen]="\e[92m"
|
|
idsCL[LightYellow]="\e[93m"
|
|
idsCL[LightBlue]="\e[94m"
|
|
idsCL[LightMagenta]="\e[95m"
|
|
idsCL[LightCyan]="\e[96m"
|
|
idsCL[White]="\e[97m"
|
|
|
|
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"
|
|
|
|
declare -A idsCLf
|
|
idsCLf[Black]=$(tput setaf 0)
|
|
idsCLf[Red]=$(tput setaf 1)
|
|
idsCLf[Green]=$(tput setaf 2)
|
|
idsCLf[Yellow]=$(tput setaf 3)
|
|
idsCLf[LimeYellow]=$(tput setaf 190)
|
|
idsCLf[PowderBlue]=$(tput setaf 153)
|
|
idsCLf[Blue]=$(tput setaf 4)
|
|
idsCLf[Magenta]=$(tput setaf 5)
|
|
idsCLf[Cyan]=$(tput setaf 6)
|
|
idsCLf[White]=$(tput setaf 7)
|
|
idsCLf[Bright]=$(tput bold)
|
|
idsCLf[Normal]=$(tput sgr0)
|
|
idsCLf[Blink]=$(tput blink)
|
|
idsCLf[Reverse]=$(tput smso)
|
|
idsCLf[Underline]=$(tput smul)
|
|
|
|
|