diff options
| author | Gregory Anders <greg@gpanders.com> | 2024-12-26 18:51:59 -0600 |
|---|---|---|
| committer | Gregory Anders <greg@gpanders.com> | 2024-12-26 20:18:45 -0600 |
| commit | eef9664ef831c8fb3a0b259a2325cef01a774e23 (patch) | |
| tree | 1f339fcba5088d8292588a4387c5bd46da092846 /src/renderer/message.zig | |
| parent | 35b9ceee2116331b83c0c86269394e2545070b0f (diff) | |
renderer: track if fg/bg/cursor color is explicitly set by an OSC
The renderer must track if the foreground, background, and cursor colors
are explicitly set by an OSC so that changes are not overridden when the
config file is reloaded.
Diffstat (limited to 'src/renderer/message.zig')
| -rw-r--r-- | src/renderer/message.zig | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/renderer/message.zig b/src/renderer/message.zig index b420e554e..d6255661f 100644 --- a/src/renderer/message.zig +++ b/src/renderer/message.zig @@ -42,13 +42,11 @@ pub const Message = union(enum) { old_key: font.SharedGridSet.Key, }, - /// Change the foreground color. This can be done separately from changing - /// the config file in response to an OSC 10 command. - foreground_color: terminal.color.RGB, + /// Change the foreground color as set by an OSC 10 command, if any. + foreground_color: ?terminal.color.RGB, - /// Change the background color. This can be done separately from changing - /// the config file in response to an OSC 11 command. - background_color: terminal.color.RGB, + /// Change the background color as set by an OSC 11 command, if any. + background_color: ?terminal.color.RGB, /// Change the cursor color. This can be done separately from changing the /// config file in response to an OSC 12 command. |
