diff --git a/.config/zsh/functions/ansi-colours b/.config/zsh/functions/ansi-colours index e2c3178..0bb337b 100644 --- a/.config/zsh/functions/ansi-colours +++ b/.config/zsh/functions/ansi-colours @@ -3,7 +3,6 @@ # https://tintin.mudhalla.net/info/256color/ print "\e[1;97mClassic colours:\e[0m" - print "Regular Bold Underline Background" for n in {30..37}; do local nbg=$(( ${n} + 10 )) @@ -12,7 +11,6 @@ for n in {30..37}; do done print "\n\e[1;97mHigh intensity colours:\e[0m" - print "Regular Bold Underline Background" for n in {90..97}; do local nbg=$(( ${n} + 10 )) @@ -21,7 +19,6 @@ for n in {90..97}; do done print "\n\e[1;97m256 colour pallette:\e[0m" - local -a colours for n in {0..255}; do colours+="\e[38;5;${n}m\\\e[38;5;${n}m\e[0m" @@ -29,7 +26,6 @@ done print -c ${colours} print "\n\e[1;97m256 colour background:\e[0m 48 instead of 38" - -print "\e[1;97mTrue colour:\e[0m \\\e[38;2;\e[0;31mR\e[0m;\e[0;32mG\e[0m;\e[0;34mB\e[0mm and \\\e[48;2;\e[0;41mR\e[0m;\e[0;42mG\e[0m;\e[0;44mB\e[0mm" - -print "\e[1;97mReset: \e[0m\\\e[0m" +print "\e[1;97mTrue colour:\e[0m \\\e[38;2;\e[0;31mR\e[0m;\e[0;32mG\e[0m;\e[0;34mB\e[0mm" \ + "and \\\e[48;2;\e[0;41mR\e[0m;\e[0;42mG\e[0m;\e[0;44mB\e[0mm" +print "\e[1;97mReset:\e[0m \\\e[0m"