Ansi colors

From Attie's Wiki
Revision as of 12:09, 13 March 2013 by Attie (Talk | contribs)

Jump to: navigation, search

Print a palette

Run this in bash:

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

Xterm-palette.png

Brightness # Color Value
Normal 0 Black #000000
1 Red #CD0000
2 Green #00CD00
3 Yellow #CDCD00
4 Blue #0000EE
5 Magenta #CD00CD
6 Cyan #00CDCD
7 White #E5E5E5
Bright 0 Black #7F7F7F
1 Red #FF0000
2 Green #00FF00
3 Yellow #FFFF00
4 Blue #5C5CFF
5 Magenta #FF00FF
6 Cyan #00FFFF
7 White #FFFFFF
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox