aboutsummaryrefslogtreecommitdiff
path: root/src/pane
diff options
context:
space:
mode:
authorJJ Liebig <jonathan.liebig@gmail.com>2026-09-05 20:39:32 +0200
committerGitHub <noreply@github.com>2026-09-05 21:39:32 +0300
commit50ce4ec2ddb8ec621a77d8773aa6df6d9e7441ff (patch)
treeb61a6e636e31394334ba2ba8e04a34c6e46d4d1b /src/pane
parent6c52aad511b0fb601e6223bd6ad944f48cbdba6d (diff)
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
Diffstat (limited to 'src/pane')
-rw-r--r--src/pane/terminal.rs10
1 files changed, 9 insertions, 1 deletions
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"