diff options
Diffstat (limited to 'src/app/mod.rs')
| -rw-r--r-- | src/app/mod.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/app/mod.rs b/src/app/mod.rs index 36fedb71..d45e085b 100644 --- a/src/app/mod.rs +++ b/src/app/mod.rs @@ -3971,6 +3971,15 @@ last_pane = "prefix+tab" app.route_client_input(b"\x1b[99;5u".to_vec()); assert_eq!(rx.recv().await.unwrap(), bytes::Bytes::from(vec![3])); + + // iTerm2 and rxvt-style hosts may send F4 as CSI 14~. Normalize it + // through the same semantic key path instead of leaking host bytes. + app.route_client_input(b"\x1b[14~".to_vec()); + + assert_eq!( + rx.recv().await.unwrap(), + bytes::Bytes::from_static(b"\x1bOS") + ); } #[tokio::test] |
