class

Egui::Terminal::Profile

Inherits JSON::Serializable < Reference < Object

One saved terminal look: terminal background opacity, background color and the cursor-blink switch. A missing key in the JSON keeps the default, so older files load into newer code unchanged.

Constructors

new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

background

Terminal background color, "#rrggbb".

Source
background=(background : String)

Terminal background color, "#rrggbb".

Source
background_color

The saved background as an opaque Color32 (the terminal- background opacity from #opacity becomes its alpha — the app composes that in, see TermView's replace rect).

Source
background_color=(color : Color32) : Nil
Source
opacity

Terminal background opacity, 1.0 = opaque. Below 1.0 the app (see examples/terminal.cr) runs a per-pixel-transparent window and paints the terminal background with this alpha — the desktop shows through the grid only, UI panels stay opaque (alacritty's background_opacity).

Source
opacity=(opacity : Float64)

Terminal background opacity, 1.0 = opaque. Below 1.0 the app (see examples/terminal.cr) runs a per-pixel-transparent window and paints the terminal background with this alpha — the desktop shows through the grid only, UI panels stay opaque (alacritty's background_opacity).

Source