Skip to content

Instantly share code, notes, and snippets.

View lexblagus's full-sized avatar

Lex Blagus lexblagus

View GitHub Profile
@lexblagus
lexblagus / TerminalColorsTemplate.sh
Last active March 19, 2020 21:22
Bash colors template
#!/bin/bash
for clbg in {40..47} {100..107} 49 ; do # background
for clfg in {30..37} {90..97} 39 ; do # foreground
for attr in 0 1 2 4 5 7 ; do # formatting
printf "\e[${attr};${clbg};${clfg}m" # colorization
printf "\\\e[${attr};${clbg};${clfg}m" # code text prefix
printf " ░▒▓█▓▒░ " # sample characters
printf "\\\e[0m" # code text suffix
printf "\e[0m" # reset color