diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-21 20:19:54 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-21 20:22:57 +0300 |
| commit | 866aaf740e10fcfce169aaf81380ea0257fbe272 (patch) | |
| tree | f815392b7c6b24a7c0de14e655bd635656383813 /src/input | |
| parent | ca579c402d5668560ca13059f82c03178be18b2a (diff) | |
refactor: separate server client boundaries
Diffstat (limited to 'src/input')
| -rw-r--r-- | src/input/encode.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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<u8> { 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<u8> { match (code, application_cursor) { (KeyCode::Up, true) => b"\x1bOA".to_vec(), |
