diff options
| author | JJ Liebig <jonathan.liebig@gmail.com> | 2026-09-28 17:16:27 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-28 17:16:27 +0200 |
| commit | d5680d84fd1df3b592424eae5c50d54642f0727d (patch) | |
| tree | f8849a87322470c3e79ff6a4b53d6cd0baa59a11 /src/protocol/wire.rs | |
| parent | 267d47fb571c0a5e771f2e31bdf6459d625d7459 (diff) | |
fix: capture Windows host default colors at startup (#4710)
refs #1530
refs #4369
Diffstat (limited to 'src/protocol/wire.rs')
| -rw-r--r-- | src/protocol/wire.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/protocol/wire.rs b/src/protocol/wire.rs index e7fb2743..6d49592d 100644 --- a/src/protocol/wire.rs +++ b/src/protocol/wire.rs @@ -147,6 +147,10 @@ pub enum ClientInputEvent { }, FocusGained, FocusLost, + HostDefaultColor { + kind: ClientHostDefaultColorKind, + color: ClientHostColor, + }, } /// Pane-domain input after the client has classified and consumed shell actions. @@ -458,6 +462,19 @@ impl ClientInputEvent { Self::Paste { text } => crate::raw_input::RawInputEvent::Paste(text.clone()), Self::FocusGained => crate::raw_input::RawInputEvent::OuterFocusGained, Self::FocusLost => crate::raw_input::RawInputEvent::OuterFocusLost, + Self::HostDefaultColor { kind, color } => { + crate::raw_input::RawInputEvent::HostDefaultColor { + kind: match kind { + ClientHostDefaultColorKind::Foreground => { + crate::terminal_theme::DefaultColorKind::Foreground + } + ClientHostDefaultColorKind::Background => { + crate::terminal_theme::DefaultColorKind::Background + } + }, + color: (*color).into(), + } + } } } } |
