- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Making text flash in a shell script
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 02:40 AM
тАО07-18-2002 02:40 AM
Making text flash in a shell script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 02:44 AM
тАО07-18-2002 02:44 AM
Re: Making text flash in a shell script
you are looking for a way to make a text flashing in the output of a shell script?
--> man tput
this command is able to do so:
tput bold
Allways stay on the bright side of life!
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 02:52 AM
тАО07-18-2002 02:52 AM
Re: Making text flash in a shell script
i forgot to mention how to turn off flashing text:
tput rmso
You can also invert the output of a script using:
tput smso (turn inverting on)
tput rmso (turn inverting off)
Allways stay on the bright side of life!
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 03:31 AM
тАО07-18-2002 03:31 AM
Re: Making text flash in a shell script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 03:48 AM
тАО07-18-2002 03:48 AM
Re: Making text flash in a shell script
You can do it as shown below.
tput clear
bold='tput smso'
offbold='tput rmso'
blink='tput blink'
echo "${blink} This is Sukant here ${offbold}"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 03:56 AM
тАО07-18-2002 03:56 AM
Re: Making text flash in a shell script
sorry, of course Nick and Sukant are right, tput blink for blinking text is correct, i thought you wanted a text more bright than normal. My english is too bad sometimes.....
Allways stay on the bright side of life!
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 05:58 AM
тАО07-18-2002 05:58 AM
Re: Making text flash in a shell script
export HB=$(tput dim) # dim text
export HV=$(tput smso) # 1/2 bright inverse
export IV=$(tput bold) # inverse
export UL=$(tput smul) # underline
export BL=$(tput blink) # blink
export EE=$(tput sgr0) # end all enhancements
For example:
print "Normal $HB dim $HV halfbrite inverse $IV inverse $UL underline $BL blink $EE normal"
And a couple of others:
CLEARALL=$(tput khome;tput clear)
FKEYSOFF=$(tput rmln)
TTYRESET=$(tput reset)
CLEARALL will erase all of terminal memory including pages above the top of the display (the clear command only clears visible memory). FKEYSOFF turns off the function key display on terminals with usable function keys. TTYRESET is a good way to start a new login as it resets any strangeness in the terminal settings.
NOTE: tput is a scripting interface to the curses library and allows you to specify terminal features WITHOUT coding special escape sequences. However, there are hundreds of terminals (and PC emulators), many of which are incompatible with each other and many do not have all of the above features. The advantage of tput is that if the terminal does not support a feature, the result is a null string. HP terminals (and emulators such as hpterm) support all these features (actually, hpterm does not blink).
Bill Hassell, sysadmin