BashReference-Misc

From mirage335 wiki
Jump to: navigation, search

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
ColorForegroundBackground
black3040
red3141
green3242
yellow3343
blue3444
magenta3545
cyan3646
white3747
[edit] HighIntensity

ArchWiki has some documentation on high-intensity color codes.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox
Print/export
Categories