Journal 2022-06-19

Terminal codes

You can change the style of some text in the terminal with escape codes. You can use escape codes by printing \e[<...>m.

Some useful ones are:

You can combine multiple colors with a ;, for example for a bold error echo -e '\e[1;31m[ERROR]\e[0m'

<!-- Morning --> <!-- What do I want to do today? --> <!-- Evening --> <!-- What did I learn today? --> <!-- Things I learned --> <!-- Useful tools and libraries -->