Ansi colors

From Attie's Wiki
(Difference between revisions)
Jump to: navigation, search
m
m
Line 5: Line 5:
 
</source>
 
</source>
 
[[File:xterm-palette.png]]
 
[[File:xterm-palette.png]]
 +
 +
{| class="wikitable"
 +
! Brightness !! # !! Color !! Value
 +
|-
 +
|rowspan="8"| 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
 +
|-
 +
|rowspan="8"| 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
 +
|}

Revision as of 12:09, 13 March 2013

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