1
0
Fork 0

Add true colour to ANSI colour function

This commit is contained in:
tastytea 2022-03-19 06:59:38 +01:00
parent e1fd724b72
commit 8ad4ead59f
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,6 @@
#!/usr/bin/env zsh
# Prints ANSI colours along with their escape codes.
# https://tintin.mudhalla.net/info/256color/
print "\e[1;97mClassic colours:\e[0m"
@ -27,4 +28,8 @@ for n in {0..255}; do
done
print -c ${colours}
print "\n\e[1;97m256 colour background:\e[0m 48 instead of 38 \e[1;97mReset: \e[0m\\\e[0m"
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"