From 50ce4ec2ddb8ec621a77d8773aa6df6d9e7441ff Mon Sep 17 00:00:00 2001 From: JJ Liebig Date: Sat, 5 Sep 2026 20:39:32 +0200 Subject: fix: run the full applicable test suite on windows (#3660) * fix: run the full applicable test suite on windows * test: remove redundant test shell assignment * test: make endpoint and metadata fixtures deterministic * test: tolerate exited servers during windows probe cleanup --- src/pane/terminal.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/pane') diff --git a/src/pane/terminal.rs b/src/pane/terminal.rs index ecc12ed5..a804a7fb 100644 --- a/src/pane/terminal.rs +++ b/src/pane/terminal.rs @@ -4681,10 +4681,18 @@ mod tests { unicode: u16::from(b'/'), control_key_state: 0x0010, }); + #[cfg(windows)] + let legacy_expected = b"\x1b[55;8;47;1;16;3_".as_slice(); + #[cfg(not(windows))] + let legacy_expected = b"///".as_slice(); assert_eq!( pane.encode_terminal_key(shifted.clone(), crate::input::KeyboardProtocol::Legacy,), - b"///" + legacy_expected ); + let mut terminal = crate::ghostty::Terminal::new(80, 24, 0).unwrap(); + terminal.write(b"\x1b[>15u"); + let (tx, _rx) = mpsc::channel(4); + let pane = GhosttyPaneTerminal::new(terminal, tx).unwrap(); assert_eq!( pane.encode_terminal_key(shifted, crate::input::KeyboardProtocol::Kitty { flags: 15 },), b"\x1b[47;2:1u\x1b[47;2:2u\x1b[47;2:2u" -- cgit v1.2.3