Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Title: color-bash.sh
- # Author: Seth Wahle
- # Contact: Seth [at] cyberdonix.com Twitter: @SethWahle
- # comments: color-bash.sh is a template for using escape commands to modify the color of terminal outputs
- # it is usefull for creating scripts that are quickly and easily human readable. for deugging, etc.
- echo "**=====font colors======**"
- echo -e "\x1B[31m red \x1B[0m"
- echo -e "\x1B[32m green \x1B[0m"
- echo -e "\x1B[33m yellow \x1B[0m"
- echo -e "\x1B[34m dark-blue \x1B[0m"
- echo -e "\x1B[35m purple \x1B[0m"
- echo -e "\x1B[36m light-blue \x1B[0m"
- echo -e "\x1B[37m white \x1B[0m"
- echo "**=====background colors======**"
- echo -e "\x1B[40m black \x1B[0m"
- echo -e "\x1B[41m red \x1B[0m"
- echo -e "\x1B[42m green \x1B[0m"
- echo -e "\x1B[43m yellow \x1B[0m"
- echo -e "\x1B[44m dark-blue \x1B[0m"
- echo -e "\x1B[45m purple \x1B[0m"
- echo -e "\x1B[46m light-blue \x1B[0m"
- echo -e "\x1B[47m white \x1B[0m"
- echo "**===== readable mixes =====**"
- echo -e "\x1B[31m \x1B[47m red on whte \x1B[0m"
- echo -e "\x1B[35m \x1B[46m purple on blue \x1B[0m"
- echo -e "\x1B[33m \x1B[45m yellow on purple \x1B[0m"
- echo -e "\x1B[32m \x1B[44m green on dark-blue \x1B[0m"
- echo -e "\x1B[0;30m \x1B[43m black on yellow \x1B[0m"
- echo -e "\x1B[31m \x1B[42m red on green \x1B[0m"
- echo -e "\x1B[37m \x1B[41m white on red \x1B[0m"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement