Terminal Colors

dnetto, bashshellcolorterminal
Back

This is a very simple script that I always end up using whenever I want to add some color to the terminal.

Photo

How to use

sh <(curl -s https://raw.githubusercontent.com/dnettoRaw/color/master/color_tab_dan)

You can use this with the echo and printf commands:

echo "\033[38;5;227m my very cool color \033[0m"
printf "\033[38;5;227m my very cool color \033[0m"

To better understand how colors work in the terminal, check out this link

Tips

Format your code like this: \033[38;5;[MyColorCode]m

To reset colored effects, simply use: \033[0m

Code on GitHub

Daniel Netto Logo2026 © Daniel Netto. Todos os direitos reservados.
Hospedado por Verceldnetto.dev