BashReference-Misc
From mirage335 wiki
Contents |
[edit] RichFormatting
[edit] RestoreDefault
If terminal has been changed from defaults, it may be restored with either of these commands.
tput sgr0 echo -ne \E[0m
[edit] Template
Numbers are unique to their meaning, and may be applied in any order.
echo -e '\E[<number>;<number>;<number>m <textHere> \E[0m'
[edit] Example
Bold, green on cyan, useful for nominal diagnostic messages.
echo -e '\E[1;32;46m <textHere> \E[0m'
[edit] Numbers
[edit] Face
Bold: 1 Underline: 4 Blinking: 5
[edit] Color
[edit] Normal
| Color | Foreground | Background |
|---|---|---|
| black | 30 | 40 |
| red | 31 | 41 |
| green | 32 | 42 |
| yellow | 33 | 43 |
| blue | 34 | 44 |
| magenta | 35 | 45 |
| cyan | 36 | 46 |
| white | 37 | 47 |
[edit] HighIntensity
ArchWiki has some documentation on high-intensity color codes.