This repository has no description
Something went wrong. Try again.
input: extract mouse encoding to a pure, testable file master
Move mouse event encoding logic from Surface.zig into a new input/mouse_encode.zig file. The new file encapsulates event filtering (shouldReport), button code computation, viewport bounds checking, motion deduplication, and all five wire formats (X10, UTF-8, SGR, urxvt, SGR-pixels). This makes the encoding independently testable and adds unit tests covering each format and edge case. Additionally, Surface `mouseReport` can no longer fail, since the only failure mode is no buffer space which should be impossible. Updated the signature to remove the error set.
Author Mitchell Hashimoto Date (Mar 15, 2026, 10:37 PM UTC) Commit ac5e57ce ac5e57ce67d3c6913935aa265617cb4d3f46aba4 Parent a7514d38 a7514d389b6c2d543fa7d548989cbd219e96c758 Change ID rykquoqt rykquoqtlrqmxrmrsmwuzwpkyuomnvrr