Tag Info

New answers tagged

0

We can apply something like this code in bash: #!/bin/bash DATA[0]=" _/ _/ _/ _/ " DATA[1]=" _/_/_/_/_/ _/_/_/ _/_/_/ _/_/_/ _/_/_/ " DATA[2]=" _/ _/ _/ _/ _/ _/ _/_/ _/ _/" DATA[3]="_/_/_/_/_/ _/ _/ _/ _/ _/_/ _/ _/ " DATA[4]=" _/ _/ _/_/_/ _/_/_/ _/_/_/ ...


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


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

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



Top 50 recent answers are included