Emulations

Color

About text and background colors.

Available color modes

Following checkboxes can be setted in Settings - Window Settings. Each mode can be used simultaneously. If all are set to disable, 8-color mode is used.

Sequence which changes availability depends on color setting

8 color mode

When either 16 or 256 color mode is enabled, colors 1-7 are slightly darker.

When 16 and 256 color modes are disable, 8 color mode is used and colors 1-7 are bright(primary) colors.

16 color mode (PC style)

Blink attribute is Tera Term extension.

16 color mode (aixterm style)

When the 16-color mode (aixterm style) is disalbe, SGR100 is "text and background colors set to default".

256 color mode(xterm style)

16 color mode (PC style) detail

In Tera Term To extend fore and background 16 color simultaneously, bold attribute is used to extend the fore color and blink attribute is used to extend the background color.

If bold attribute is used to extend the background color, for example, it is not possible to specify a fore color is 15 and background color is 1.

Application outputs according to TERMINFO (e.g. ncurses applications), TERMINFO entry setab as follows:

  setab=\E[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t5;4%p1%{8}%-%d%e48;5;%p1%d%;m,

About changing color

16 default colors can be changed in TERATERM.INI.

Color themes can also be changed.

Change default color

16/256 color mode

Color numbers 0 through 15 are different in ANSIColor in TERATERM.INI. first 7 colors and second 7 colors are replaced (black and gray are not replaced).

8 color mode

Color numbers 0 through 8 are first 8 colors set in ANSIColor in TERATERM.INI.

color table

      TERATERM.INI            16/256 color              8 color
 0    "Black"                 "Black"                   "Black"
 1    "Bright Red"            "Red"                     "Bright Red"
 2    "Bright Green"          "Green"                   "Bright Green"
 3    "Bright Yellow"         "Yellow"                  "Bright Yellow"
 4    "Bright Blue"           "Blue"                    "Bright Blue"
 5    "Bright Magenta"        "Magenta"                 "Bright Magenta"
 6    "Bright Cyan"           "Cyan"                    "Bright Cyan"
 7    "Bright White"          "White"                   "Bright White"
 8    "Bright Black (Gray)"   "Bright Black (Gray)"
 9    "Red"                   "Bright Red"
10    "Green"                 "Bright Green"
11    "Yellow"                "Bright Yellow"
12    "Blue"                  "Bright Blue"
13    "Magenta"               "Bright Magenta"
14    "Cyan"                  "Bright Cyan"
15    "White"                 "Bright White"

Reverse color

Reverse color is displayed in the following cases:

When reverse attribute is enabled, text is drawn with reverse attribute fore and back colors.

When reverse attribute is disabled, the fore and back colors are replace to make the display reverse color. (Some terminal emulators use (255-R,255-G,255-B) as (R,G,B) color invert color.)

This is for following reasons:

text foreground and background colors

| Attribute           | Fore Color     | Back Color     | UseNormalBGColor | remark         |
|---------------------|----------------|----------------|------------------|----------------|
| Fore color          | Fore color     | -              |                  | 8/16/256 color |
| Back color          | -              | Back color     |                  | 8/16/256 color |
| Blink attribute     | Blink fore     | Blink back     | o                | SGR5           |
| Bold attribute      | Bold fore      | Bold back      | o                | SGR1           |
| Underline attribute | Underline fore | Underline back | o                | SGR4           |
| URL attribute       | URL fore       | URL back       | o                |                |
| Reverse attribute   | Reverse fore   | Reverse back   |                  | SGR7           |
| Normal attribute    | Normal fore    | Normal back    |                  | SGR0           |