Subject: Re: reverse text
To: None <netbsd-help@netbsd.org>
From: George Georgalis <george@galis.org>
List: netbsd-help
Date: 09/24/2006 20:10:16
On Mon, Sep 25, 2006 at 12:03:29AM +0000, Christos Zoulas wrote:
>In article <20060924190210.GA27514@run.galis.org>,
>George Georgalis <george@galis.org> 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><