Contents of a theme file
Theme is a framework that handles background image, text color, or both at once.
To create or change a theme, edit the theme file (*.ini) in a text editor and load it with Startup on the
"Theme" tab.
This page explains what a theme file can set.
Background (Background theme)
background
Background images are merged from the bottom up.See Overview of background.
- Simple color plane
-
Alphablend with a single color.
For example, if you want to slightly darker the blended image background image and desktop wallpaper, Alphablend black with half value(128).- Color
- Plane color
- Alpha (Opaque right):
- Alpha blend value
- Background Image
-
Background image.
Some image files support per-pixel alpha values.- Image file
-
Any format macOS can read (JPEG, PNG, GIF, BMP, HEIC, etc.) can be used (loaded with the macOS image loader, ImageIO).
For images with an alpha channel, such as transparent PNG, the transparency is used as well. - Pattern
-
How to draw background images.
- stretch
- Stretch image to fit the window.
- tile
- Tile image starting from the top-left corner of the window.
- center
- Display image in center of the window.
- fit_width
- Scale image to match the window width while maintaining aspect ratio.
- fit_height
- Scale image to match the window height while maintaining aspect ratio.
- autofit
- Maintain aspect ratio and display at maximum size without overflow.
- autofill
- Maintain aspect ratio and display at maximum size even if it overflows.
- Color
-
If there are areas where the background image is not drawn,
the area will be painted with this color.
If there are transparent areas in the image and the wallpaper image is not blended, the area will be patinted with this color too. - Alpha (Opaque right):
-
Alpha blend value with desktop wallpaper image
Setting values from transparent to opaque
- Desktop wallpaper image
- Wallpaper image. The desktop picture is used.
Background image alpha
- Normal back alpha (Opaque right direction):
-
Transparency of background image and normal text background color
Setting values from transparent to opaque
Background of normal text (1) - Reverse back alpha:
-
Transparency of background image and reverse text background color
Setting values from transparent to opaque
Background of reverse text (2) - Other back alpha:
-
transparency of Background image and other text background colors
Setting values from transparent to opaque
Background of text in other colors (3)
Text color (color theme)
The color theme sets colors overriding default colors.
Default colors are set in TERATERM.INI.
Colors not set in the color theme ini file will be the default colors.
Colors are set by writing them in the theme file. You can also pick a preset scheme with "Color Scheme" on the "Theme" tab.
Example of displaying the set color
curl -fsSL https://raw.githubusercontent.com/TeraTermProject/teraterm/main/tests/256colors2.pl | perl curl -fsSL https://raw.githubusercontent.com/TeraTermProject/teraterm/main/tests/colortable16.sh | sh curl -fsSL https://raw.githubusercontent.com/TeraTermProject/teraterm/main/tests/color-sgr-decscnm.pl | perl
Background Theme Overview
Tera Term Mac creates the background image as follows.
Color setting Overview
- Tera Term default colors are read from TERATERM.INI
Drawing colors will be the default color.
If themefile is loaded at startup and it contains a color theme, Drawing colors will be colors in theme. - Saving to TERATERM.INI saves default colors.
- Cannot copy drawing color to default colors.
About default colors
Default colors and fonts can be set with the following keywords in TERATERM.INI| Attr \ ini | font on/off | color on/off | color(R,G,B,R,G,B) | |---------------|-------------------|------------------------|--------------------| | Normal | - | - | VTColor | | Bold | EnableBold | EnableBoldAttrColor | VTBoldColor | | Blink | - | EnableBlinkAttrColor | VTBlinkColor | | Reverse | - | EnableReverseAttrColor | VTReverseColor | | URL Underline | URLUnderline | EnableURLColor | URLColor | | Underline | UnderlineAttrFont | UnderlineAttrColor | VTUnderlineColor |