Emulations
- DEC VT100 and selected features of VT200/300/400/500
- ANSI control sequences, which are not supported by VT100 (color attribute etc.), are also supported.
- The xterm extension sequences like as the mouse and the 256 color are supported.
- You can enable or disable the use of bold style font for characters with the bold attribute. You can also set the color to display them.
- Characters with the blink attribute don't actually blink. Instead, you can set the color with which to display them.
- Characters with double width/height and VT52 mode are not supported.
- Tektronix TEK4010
Color
About text and background colors.
Available color modes
Following checkboxes can be setted in Settings - Window Settings.
Each mode can be used simultaneously.
- 16 color mode (PC style)
- 16 color mode (aixterm style)
- 256 color mode (xterm style)
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.
- Fore color 0-7 = SGR 30-37
- Back color 0-7 = SGR 40-47
16 color mode (PC style)
Blink attribute is Tera Term extension.
- Fore color 0-7 = SGR 30-37
- Fore color 8-15 = Bold + SGR 30-37
- Back color 0-7 = SGR 40-47
- Back color 8-15 = Blink + SGR 40-47
16 color mode (aixterm style)
When the 16-color mode (aixterm style) is disalbe,
SGR100 is "text and background colors set to default".
- Fore color 0-7,8-15 = SGR 30-37,90-97
- Back color 0-7,8-15 = SGR 40-47,100-107
256 color mode(xterm style)
- Fore color 0-255 = Set color number with SGR 38
- Back color 0-255 = Set color number with SGR 48
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
- [Tera Term] section in TERATERM.INI
- ANSIColor key
- 8 bright colors from the beginning (primary color, bright version)
- Next 8 colors are slightly darker than first 8 colors (black is not replaced)
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).
- 0 black
- 1-7 Slightly darker color
- 8 gray
- 9-15 Bright color, primary color
8 color mode
Color numbers 0 through 8 are first 8 colors set in ANSIColor in TERATERM.INI.
- 0-7 Bright color, primary color
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:
- SGR 7
- When DECSCNM set
- When the mouse is selected
In Tera Term, 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:
- Tera Term's main emulation target is DEC VT series
- Same as VT525 operation, which can handle color in the VT series.