From 866aaf740e10fcfce169aaf81380ea0257fbe272 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Thu, 21 May 2026 20:19:54 +0300 Subject: refactor: separate server client boundaries --- src/input/encode.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/input') diff --git a/src/input/encode.rs b/src/input/encode.rs index ea7949aa..2778a78b 100644 --- a/src/input/encode.rs +++ b/src/input/encode.rs @@ -6,7 +6,7 @@ const KITTY_FLAG_REPORT_EVENT_TYPES: u16 = 0b0000_0010; const KITTY_FLAG_REPORT_ALTERNATE_KEYS: u16 = 0b0000_0100; /// Encode a key event for a PTY child using the pane's negotiated keyboard protocol. -#[allow(dead_code)] // exercised in input unit tests; production uses PaneRuntime helpers +#[allow(dead_code)] // exercised in input unit tests; production uses TerminalRuntime helpers pub fn encode_key(key: KeyEvent, protocol: KeyboardProtocol) -> Vec { encode_terminal_key(key.into(), protocol) } @@ -24,7 +24,7 @@ pub fn encode_terminal_key(key: TerminalKey, protocol: KeyboardProtocol) -> Vec< encode_legacy(key.as_key_event()) } -#[allow(dead_code)] // exercised in input unit tests; production uses PaneRuntime helpers +#[allow(dead_code)] // exercised in input unit tests; production uses TerminalRuntime helpers pub fn encode_cursor_key(code: KeyCode, application_cursor: bool) -> Vec { match (code, application_cursor) { (KeyCode::Up, true) => b"\x1bOA".to_vec(), -- cgit v1.2.3