Ansi colors
From Attie's Wiki
Print a palette
These palettes are generated from a 'clean' installation of XTerm (with no configuration).
16-color
for x in 4 10; do for y in $(seq 0 7); do echo -en "\0033[${x}${y}m "; done; echo -e "\0033[0m"; done
Some of these colors aren't good, and I prefer to use another. See the Xresources page for implementation of this.
Brightness | # | ## | Color | Value | Attie's Preferred |
---|---|---|---|---|---|
Normal | 0 | 0 | Black | #000000 | ← |
1 | 1 | Red | #CD0000 | ← | |
2 | 2 | Green | #00CD00 | ← | |
3 | 3 | Yellow | #CDCD00 | ← | |
4 | 4 | Blue | #0000EE | ← | |
5 | 5 | Magenta | #CD00CD | ← | |
6 | 6 | Cyan | #00CDCD | ← | |
7 | 7 | White | #E5E5E5 | ← | |
Bright | 0 | 8 | Black | #7F7F7F | ← |
1 | 9 | Red | #FF0000 | ← | |
2 | 10 | Green | #00FF00 | ← | |
3 | 11 | Yellow | #FFFF00 | #D78700 | |
4 | 12 | Blue | #5C5CFF | ← | |
5 | 13 | Magenta | #FF00FF | ← | |
6 | 14 | Cyan | #00FFFF | ← | |
7 | 15 | White | #FFFFFF | ← |
256-color
The colors before #16 are the same as above.
for x in $(seq 16 6 255); do for y in $(seq ${x} $((x + 5))); do printf "\e[48;5;${y}m %-3d " ${y}; done; echo -e "\0033[0m"; done