UNIX korn shell - how to use printf or echo to produce blinking text

Hopefully a simple question - is there some way to produce blinking text using echo or printf from within a korn shell script?

For example, printf "\rSome Text Here" will cause the output to start at the beginning of the current line. Is there a similar control character that can be used to cause text to blink?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Todd MummertCommented:

yes... but many terminal emulators don't fully support it any more

you can use escape sequences like:

echo "^[[5;31;40m"

(the first  two characters above is a single escape   (generated with ctrl-v esc)

alternately, you could try  the commands

tput blink;  echo foo; tput sgr0

http://tldp.org/LDP/abs/html/colorizing.html  for more info

..... an easier way -
bl=$(tput blink)
nbl=$(tput sgr0)
echo "${bl}foo${nbl}"

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Kerem ERSOYPresidentCommented:
While \r will cause the cursor to locate at the beginning of current line. To cause the blinking you'd use VT100 escape sequences thoug such as:

printf "\r\e[0;5mblahh"

Will cause the line to blink.

Kerem ERSOYPresidentCommented:
of course you need

printf "\e[0m"  

to stop blinking :)
Kerem ERSOYPresidentCommented:
Why not

echo "$(tput blink)SSSSSSSSSS$(tput sgr0) aaaaa"

Then ;-)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.