Setting The background color with CScript

Question :

I set the background color to WHITE, but it comes out grey. Why?

Answer :

The TinyTERM background colors -- BLACK, BLUE, GREEN, CYAN, RED, MAGENTA, BROWN and WHITE -- are the "darker" versions of the colors. The bright colors are reserved for the foreground.

Question :

Is there some way to make the background bright white?

Answer :

Yes, through TinyTERM's CScript scripting language. To write and run a script, go to TinyTERM's Tools menu and select Script Editor. The command:

te.SetRGBEntry(7,16777215);

will make the WHITE background color bright white.

Question :

Can I use te.SetRGBEntry() to change any TinyTERM color?

Answer :

Yes. The colors in order by number, and the associated numerical color values, are:

0
1
2
4
5
6
7
8
9
10
11
12
13
14
15

BLACK
BLUE
GREEN
CYAN
RED
MAGENTA
BROWN
LIGHT GREY
LIGHT BLUE
LIGHT GREEN
LIGHT CYAN
LIGHT RED
MAGENTA
YELLOW
LIGHT WHITE

0
8388608
32768
8421376
128
8388736
32896
8421504
16711680
65280
16776960
255
16711935
65535
16777215

The first eight colors are the available background colors. The color values are 24-bit numbers.

Question :

That works, but only until I close the session. So how do I set the colors and get them to stay that way?

Answer :

You'll need to do this separately for each session you want your colors used in. Save the script you created, using the Script Editor's Save button. Once you've saved the script, go to TinyTERM's Edit menu and select Session Properties. Click the radio button by "Post session start," then click the Browse button below that. Select the script you created and click OK. Click OK to close the Session Properties, then save the settings. The next time you open that session, your color settings will load automatically.