v1.1.0: SGR Mouse Event Parsing #9

Merged
amr merged 2 commits from feature/v0.11.0-slots into main 2026-05-12 18:43:20 -04:00
Owner

SGR mouse event parsing for read-event. Adds %read-digits, %parse-sgr-mouse, and SGR detection in parse-csi-sequence.

SGR mouse event parsing for read-event. Adds %read-digits, %parse-sgr-mouse, and SGR detection in parse-csi-sequence.
amr added 2 commits 2026-05-12 18:26:47 -04:00
- Add %read-digits to read multi-digit parameters from raw terminal bytes
- Add %parse-sgr-mouse to decode ESC[<Cb;Cx;CyM/m SGR mouse sequences
  into mouse-event structs with :press/:release type and :left/:middle/
  :right/:scroll-up/:scroll-down/:drag button classification
- Modified parse-csi-sequence to detect the < marker (0x3C) and
  delegate to %parse-sgr-mouse instead of treating it as key input
- Coordinates converted from 1-based (terminal protocol) to 0-based
  (framebuffer convention)
- All 12 test suites pass at 100% (461 checks, no regressions)
- Org source (text-input.org) updated as the source of truth
amr merged commit c30917056c into main 2026-05-12 18:43:20 -04:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: amr/cl-tty#9