Created
December 6, 2013 17:02
-
-
Save davidh-raybeam/7828324 to your computer and use it in GitHub Desktop.
Shamelessly copied from somewhere on the Internet. Please comment if you know the actual source, and I'll update this.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# tputcolors | |
echo | |
echo -e "$(tput bold) reg bld und tput-command-colors$(tput sgr0)" | |
for i in $(seq 1 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