Tagwalkthrough

Coloring Terminal Text: tput and ANSI Escape Sequences

C

A terminal with black-on-white text or vice versa is not very interesting or attractive or informative. Thankfully, modern terminal emulators offer a variety of text styling options as well as foreground and background colors. It’s just a matter of knowing how to apply them with ANSI escape sequences or the tput command. We will explore both methods in this article. How a Terminal Formats...