Terminal Markup | ||
---|---|---|
Prev | Created by Bayou. | Next |
In short I want to continue our journey to the text markup. There are several types:
My terminal of choise, xterm, supports only Bold, Underline, Blink,
Reverse and Hidden. You should test the markups in your terminal to know
which will work for you.
The number in the list above is the number to use in the syntax:
echo -e "\033[1m Bold text \033[0m"
echo -e "\033[5m Blinking text \033[0m"
Again, these are stackable with the 8/16/256 color schemes.
# 256 color scheme
echo -e "\033[38;5;201;48;5;4;1m Pink bold fg, blue bg \033[0m"
# 16 color scheme
echo -e "\033[1;4;91;100m Red bold underlined fg, grey bg\033[0m"
This comes in handy if you want revert to the default settings. It removes color or text changes.
echo -en "\033c"
Coming up: Text alignment!
Prev | Home | Next |
Terminal colors | Up | Text alignment |