English
Français

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.

TechTip: Starts Minimized - TechTip: Change the Title Bar from the UNIX application - TechTip: Changing Screen Font Size - TechTip: Code Page Setup - TechTip: Configuring TinyTERM to act as a stand-alone file server for your home or office. - TechTip: Correcting License Problems - TechTip: Debug CScript Errors - TechTip: Determining a PC's Physical Location at Login - TechTip: DSL and Cable Modem Compatability - TechTip: Installing Desktop Shortcuts for TinyTERM - TechTip: Launch Another Windows-based Application From Within TinyTERM - TechTip: Map multiple CScript commands to a single key - TechTip: Mapping your Keyboard to Save Time and Money - TechTip: Missing lines, or misaligned characters using SCO ANSI emulation. - TechTip: Port Forwarding. What is it? - TechTip: Port Forwarding with Microsoft Internet Explorer - TechTip: Port Forwarding with Microsoft Outlook - TechTip: Port Forwarding with Microsoft Outlook Express - TechTip: Port Forwarding with the Opera Web Browser - TechTip: Programming the Mouse Button to Copy and Paste Text - TechTip: Resolving A Missing Application Window On TinyTERM Start - TechTip: Resolving an Error - 115 during a NetUtils Installation - TechTip: Resolving License errors from TinyTERM - TechTip: Scripting TinyTERM Events - TechTip: Setting The background color with CScript - TechTip: Stopping the CenLPD service so you can uninstall TinyTERM Plus - TechTip: Term for Linux / Unix Installation. - TechTip: TinyTERM closes after a connection error - TechTip: TinyTERM Support for Code Pages - TechTip: Transparent Printing in v4.2 - TechTip: Troubleshooting Connection Errors - TechTip: Troubleshooting Connection Failure (Error 10065) - TechTip: Troubleshooting Serial Connections - TechTip: Using TinyTERM's Micro Recorder. - TechTip: Wich version of TinyTERM should one use on a particular Microsoft Windows platform? - Terminal Emulation Competitive Analysis - Secure Shell the need for security - TinyTERM detail overview - TinyTERM Suite - TinyTERM Emulation versus TinyTERM Plus -