Skip to content

Instantly share code, notes, and snippets.

@eddieh
Created November 29, 2021 08:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eddieh/c6feaf8f859db8a2a3460f7437cd8aa5 to your computer and use it in GitHub Desktop.
Save eddieh/c6feaf8f859db8a2a3460f7437cd8aa5 to your computer and use it in GitHub Desktop.
#!/bin/bash
# tputcolors
# http://linuxtidbits.wordpress.com/2008/08/11/output-color-on-bash-scripts/
echo
echo -e "$(tput bold) reg bld und tput-command-colors$(tput sgr0)"
for i in $(seq 0 7); do
echo " $(tput setaf $i)Text$(tput sgr0) $(tput bold)$(tput setaf $i)Text$(tput sgr0) $(tput sgr 0 1)$(tput setaf $i)Text$(tput sgr0) \$(tput setaf $i)"
done
echo ' Bold $(tput bold)'
echo ' Underline $(tput sgr 0 1)'
echo ' Reset $(tput sgr0)'
echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment