From 8dba176e70c39d4afbcc28610fc3a1e225290485 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 5 Jan 2019 13:31:22 -0600 Subject: [PATCH] Update colors.inc --- colors.inc | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/colors.inc b/colors.inc index 3505420..a55daea 100755 --- a/colors.inc +++ b/colors.inc @@ -1,5 +1,7 @@ #!/usr/bin/env bash + +###### OLD ############ declare -A CS CS[color,Default]="\e[39m" CS[color,Black]="\e[30m" @@ -44,3 +46,52 @@ CS[style,UnderLine]="\e[4m" CS[style,Blink]="\e[5m" CS[style,Invert]="\e[7m" CS[style,Hidden]="\e[8m" + +####################################### + +declare -A idsCL +idsCL[Default]="\e[39m" +idsCL[Black]="\e[30m" +idsCL[Red]="\e[31m" +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" \ No newline at end of file