To everyone who’s helped, thank you. At the moment, I’m using the
ANSI sequence below with an additional \033c to clear the screen,
resulting in a background color change to the entire window.
Thanks again!
-Barry
Robert Rutherford wrote:
[My previous post seemed to get lost. Sorry if you see this twice]
I’m not sure if this is what you are after, but did you try something as
simple as:
$ echo \033[=4G
This will work for ANSI mode. For QNX emulation you need something like
$ echo \033@73
The complete terminal control sequences for ANSI and QNX are documented in
the online docs for Dev.ansi and Dev.con respectively.
Rob Rutherford
“Barry Robertson” <> brobertson@SoftwareRemodeling.com> > wrote in message
news:> 39770685.63A3F33C@SoftwareRemodeling.com> …
Steve,
Thanks for the color indexes. Is there any information on what
each digit of the 8-digit hexadecimal numbers refer to (ie.
background color, text color)?
Also, what I’d like to do is be looking at a pterm window (I seem
to be in ANSI mode), let’s say it’s background is black, and issue
a command to my current pterm to change the background color for
the whole window to something like blue.
Idea’s? I’ve looked in our documentation, but haven’t come up
with anything. I thought the -L (don’t create a new session)
might be the ticket, but didn’t seem to work. I was trying to
use a new pterm command that assumed the current window.
Thanks for your help,
Barry
Steve Reid wrote:
Barry Robertson <> brobertson@softwareremodeling.com> > wrote:
: I partially got it with a pterm.pal file, but I can’t find any
: information on what the numbers are supposed to be for or what
: range they are to be in.
Here’s something that was added to the docs fairly recently:
The palette file can be either a binary file containing sixteen 32-bit
entries or a text file containing sixteen 8-digit hexadecimal numbers
separated by newlines (and terminated with a single newline). If the
length of the file is neither 64 nor 144 bytes, the file is assumed
invalid.
The palette file is capable of displaying 16 colors: 8 “normal” colors
and
8 “bright” colors in the same way that a standard CGA/VGA does.
Color numbers are indexes into this array. The default array has 16
elements corresponding to 16 standard CGA colors:
Index Color
0 BLACK
1 BLUE
2 GREEN
3 CYAN
4 RED
5 MAGENTA
6 BROWN
7 WHITE (light grey)
8 BRIGHT BLACK (dark grey)
9 BRIGHT BLUE
10 BRIGHT GREEN
11 BRIGHT CYAN
12 BRIGHT RED
13 BRIGHT MAGENTA
14 BRIGHT BROWN (yellow)
15 BRIGHT WHITE
Steve Reid > stever@qnx.com
TechPubs (Technical Publications)
QNX Software Systems Ltd.
–
__| _ \ _ | Barry Robertson
_ \ | | | Software Consultant Phone: 972-758-9349
| __ < | Software Remodeling, Inc. Fax: 972-964-7524
___/ _| __| > brobertson@SoftwareRemodeling.com
–
__| _ \ _ | Barry Robertson
_ \ | | | Software Consultant Phone: 972-758-9349
| __ < | Software Remodeling, Inc. Fax: 972-964-7524
___/ _| __| brobertson@SoftwareRemodeling.com