Re: reverse text

"George Georgalis" <[email protected]>
Newsgroups gmane.os.netbsd.help
Message-ID <[email protected]>
On Mon, Sep 25, 2006 at 12:03:29AM +0000, Christos Zoulas wrote:
>In article <[email protected]>,
>George Georgalis <[email protected]> wrote:
>>I'm looking for a way to reverse text color. (eg transpose
>>foreground/background) I'm expecting to find some esc or ctrl
>>sequence of characters to turn on reverse video and similarly to
>>turn off.  Normally I would ssh in, from an xterm, but I'd like a
>>technique to work as expected from console, as well--if that's an
>>issue I can check TERM setting.
>>
>>The only doc I've seen on doing this is for PS1 on some shells
>>but I'm looking for something generic enough that I can invoke
>>with printf commands.
>
>tput so; echo foo; tput se; echo bar

     so        str                 Begin standout mode.
     se        str                 End standout mode.

se/so looks like a better sequencs than what I found...

// George


-- 
George Georgalis, systems architect, administrator <IXOYE><
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.