Colorize Output in Terminal

πŸ“…οΈ Published: January 31, 2020  β€’ πŸ•£ 1 min read

The ANSI escape sequences help adding color to the terminal (Doesn’t work on Windows I guess)

Here is the format:

\033[<ForegroundColorCode>;<BackgroundColorCode>;<Style>mYour Text


<ForegroundColorCode>, <BackgroundColorCode> & <Style> are integer Color Codes. See Resources for list of colors.

Example :

echo -e "\033[92;1mHello\033[0m"

Hello will be bold & green in color


Tired of fucking up with git everyday?

ugit helps you undo git commands with ease. Undo from 20+ git scenarios

ugit cli demo screen