From d5680d84fd1df3b592424eae5c50d54642f0727d Mon Sep 17 00:00:00 2001 From: JJ Liebig Date: Mon, 28 Sep 2026 17:16:27 +0200 Subject: fix: capture Windows host default colors at startup (#4710) refs #1530 refs #4369 --- src/protocol/wire.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/protocol') 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(), + } + } } } } -- cgit v1.2.3