Tag Info

Hot answers tagged

2

Use tput to get the control sequences (if they exist) for the user's terminal: red="`tput setaf 1`" green="`tput setaf 2`" cyan="`tput setaf 6`" bold="`tput bold`" norm="`tput sgr0`" echo "${red}invalid entries${norm}" echo "valid entries" echo "valid entry"


1

It's called blink mode. If your terminal supports it, syntax is echo -e "Normal \e[5mBlink" Bash tips: Colors and formatting ANSI/VT100 Control sequences


1

echo -e "\e[31minvalid entries\e[0m" Reference: Bash tips: Colors and formatting (ANSI/VT100 Control sequences)



Only top voted, non community-wiki answers of a minimum length are eligible