echo "$(tput -T xterm setaf 'color_number')"
echo "$(tput -T xterm setaf 2)"
echo "$(tput -T xterm setab 'color_number')"
echo "$(tput -T xterm setab 6)"
0 = black
1 = red
2 = green
3 = yellow
4 = blue
5 = magenta
6 = cyan
7 = white
printf "\e[4m"
printf "\e[1m"
printf "\e[1m\e[4m"
Add printf "\n" (newline) if needed
#!/bin/bash
printf "\e[1m\e[4m"
echo "$(tput -T xterm setaf 6)"
printf "\n"
cat /your/path/to/ascii_art.txt
printf "\n"
sudo apt install lolcat
cat /path/to/ascii_art.txt | lolcat
- useful for quickly coloring help menus in bash scripts
https://pygments.org/demo/
pygmentize
pygmentize -l <language_option> <<eof
<ascii-art>
eof
pygmentize -l csh <<eof
<Bash_Help_Menu>
eof