mirror of
https://github.com/earendil-works/pi.git
synced 2026-06-18 15:54:04 +08:00
7f30fb6136
packages/tui/src/stdin-buffer.ts โ in extractCompleteSequences, after finding \x1b\x1b as "complete" (legacy meta-key), check if the next character in the buffer would start a new escape sequence ([, ], O, P, _). If so, emit only the first \x1b and let the second ESC begin a new parse iteration. packages/tui/test/stdin-buffer.test.ts โ three new cases in the Kitty section: - \x1b\x1b[27;129:3u (num_lock) splits into ["\x1b", "\x1b[27;129:3u"] - \x1b\x1b[27;1:3u (no num_lock) splits into ["\x1b", "\x1b[27;1:3u"] - \x1b\x1b alone (no following CSI) still emits as ["\x1b\x1b"] โ preserves ctrl+alt+[
7f30fb6136
ยท
2026-05-13 18:43:42 +02:00
History