1850517 Members
2292 Online
104054 Solutions
New Discussion

Blink Display

 
SOLVED
Go to solution

Blink Display

Hi all, How do I print blinking messages using Korn @ Born Shell ?
3 REPLIES 3
Rainer_1
Honored Contributor

Re: Blink Display

blink attribut can be turned on with

echo "`tput blink`text..."

but this is not supported on hpterm, dtterm, xterm
James R. Ferguson
Acclaimed Contributor

Re: Blink Display

Hi:

Use 'tput'. Take a look at the man pages for 'tput' and 'terminfo'. If your terminal supports it, you can blink messages by doing the following:

# echo "`tput blink`Hello world"

...JRF...
John Palmer
Honored Contributor
Solution

Re: Blink Display

Hi,

The command 'tput' will provide you with the necessary control strings for your TERM, see man tput and man terminfo.

For example:-

#!/usr/bin/sh
BLINK=$(tput blink)
NORM=$(tput sgr0)
print "normal ${BLINK} blinking ${NORM} normal"

Regards,
John