Nerveware


Text markup

In short I want to continue our journey to the text markup. There are several types:

  1. Bold - Fat text
  2. Dim - Dimmed text
  3. Italic - Cursive text
  4. Underline - Underlined text
  5. Blink - Blinking text
  6. Reverse - Reverses fg and bg (e.g., white becomes black)
  7. Hidden - Text is not shown
  8. Striped trough - a line though the text

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"

Clearing the screen.

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!