Subject: Re: reverse text
To: None <netbsd-help@netbsd.org>
From: Christos Zoulas <christos@astron.com>
List: netbsd-help
Date: 09/25/2006 00:03:29
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

christos