From: laredotornado on
Hi,

I'm using Mac 10.6.3. I'm trying to change the foreground and
background colors (inverse them essentially) of my terminal. I've
figured out how to change the background color by going to the
Terminal menu, selecting Preferences, and clicking the "Window" tab,
but I can't figure out how to change the foreground color. Any ideas?

Thanks, - Dave
From: Jim Gibson on
In article
<39dd4cdd-53a4-4644-8dd6-839e75fc7444(a)u21g2000yqc.googlegroups.com>,
laredotornado <laredotornado(a)zipmail.com> wrote:

> Hi,
>
> I'm using Mac 10.6.3. I'm trying to change the foreground and
> background colors (inverse them essentially) of my terminal. I've
> figured out how to change the background color by going to the
> Terminal menu, selecting Preferences, and clicking the "Window" tab,
> but I can't figure out how to change the foreground color. Any ideas?

Go to the Text tab in that same panel, where you will find color
selection buttons for Text, Bold Text, and Selection.

--
Jim Gibson
From: JF Mezei on
laredotornado wrote:
> Hi,
>
> I'm using Mac 10.6.3. I'm trying to change the foreground and
> background colors (inverse them essentially) of my terminal.


http://vt100.net/docs/vt220-rm/contents.html

In particular chapter 4:

4.6.12 Screen Mode (DECSCNM)

Screen mode selects either a dark or light (reverse) display background
on the screen.

You can set or reset screen mode as follows.

NOTE: This is a user preference feature that you can lock by using set-up.
Mode Sequence Action
Set

9/11 3/15 3/5 6/8
CSI ? 5 h

Selects reverse video (dark characters on a light background).
Reset

9/11 3/15 3/5 6/12
CSI ? 5 l

Selects normal screen (light characters on a dark background).



CSI is either the single CSI character, or a 2 character ESC [ sequence.

I am not sure if "TERMINAL" supports this, but the Xterm should.

If you google for ANSI COLOR SEQUENCE , you might get escape codes that
let you specify background and foreground colours.
 | 
Pages: 1
Prev: Daisy Chain Problem
Next: SL Archive Reinstall