Quote:
Originally posted by LivinFree
Is there any difference between "tput rev" and "tput smso"?
|
That depends on the capabilities of the terminal and the author of the terminal's terminfo entry.
"rev" is clearly reverse video.
As for smso, the terminfo man page states:
Quote:
|
Choose one display method as standout mode and use it to highlight error messages and other text to which you want to draw attention. Choose a for of display that provides strong contrast but that is easy on the eyes. (We recommend reverse-video plus half-bright or reverse-video alone.
|
Hmmm...as I look at the man page though, I see that I shouldn't have used "rmso"...
Quote:
|
sgr0 should be used to turn off all video enhancement capabilities. It should always be specified because it represents the only way to turn off some capabilities, such as dim or blink.
|
So this is a better answer:
echo $(tput rev) text goes here $(tput sgr0)