Class TerminalTheme
What a session draws with: font, colors, and cursor. Emulation ignores all of it. How each screen then shows the picture (filtering and the CRT or LCD effect) is a DarkEffekt.Terminal.Unity.TerminalScreenType on that screen.
The font fields are read when the session builds its renderer: a later font change applies through TerminalSession.RebuildRenderer, and the cell size changes per session through TerminalSession.SetFontSize, which leaves this asset alone. Colors and cursor take effect while it runs.
Assembly: DarkEffekt.Terminal
Section titled “Assembly: DarkEffekt.Terminal”[CreateAssetMenu(fileName = "TerminalTheme", menuName = "Terminal/Theme", order = 0)][Icon("Packages/com.darkeffekt.terminal/Editor/Icons/Assets/TerminalTheme.png")]public sealed class TerminalTheme : ScriptableObjectInheritance: System.Object -> UnityEngine.Object -> UnityEngine.ScriptableObject
Fields
Section titled “Fields”MinFontSize
Section titled “MinFontSize”The smallest cell size, in pixels.
public const int MinFontSize = 6MaxFontSize
Section titled “MaxFontSize”The largest cell size, in pixels.
public const int MaxFontSize = 96[Header("Font (read when the session starts)")][Tooltip("A monospace font asset. When empty, the OS fonts below are tried, then the bundled JetBrains Mono.")]public Font fontosFontNames
Section titled “osFontNames”[Tooltip("Monospace OS font names to try in order when no font asset is set. Leave empty to use the bundled font on every platform.")]public string[] osFontNamesfontSize
Section titled “fontSize”[Tooltip("The starting cell size in pixels. During play, call SetFontSize on the session.")][Range(6, 96)]public int fontSizeforeground
Section titled “foreground”[Header("Colors (live)")]public Color foregroundbackground
Section titled “background”public Color backgroundcursorColor
Section titled “cursorColor”public Color cursorColoransiOverride
Section titled “ansiOverride”[Tooltip("Overrides for palette entries 0..15. Leave empty for xterm defaults.")]public Color[] ansiOverrideboldUsesBrightColors
Section titled “boldUsesBrightColors”[Tooltip("Bold text also uses the bright palette entry, the classic 16-color behavior.")]public bool boldUsesBrightColorscursorBlink
Section titled “cursorBlink”[Header("Cursor (live)")]public bool cursorBlinkcursorBlinkInterval
Section titled “cursorBlinkInterval”[Range(0.1, 2)]public float cursorBlinkInterval