arunsrin@ARUNSRIN-G2CA5 MINGW64 ~ $ printf "3[32mhi3[0m" hi
Escape + 3 + 2 + mtells the terminal that everything from this point onwards is in green.
Escape + [ + 0 + mreverts it back to normal
- These are some sequences:
Sequence What it Does ESC[1m Bold, intensify foreground ESC[4m Underscore ESC[5m Blink ESC[7m Reverse video ESC[0m All attributes off