diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-30 14:06:31 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:17 -0300 |
| commit | 3f6733c805d873a7af6a6064ace0cf5916f481da (patch) | |
| tree | 302874e21941dbf8b599b5e407f430e334594f62 /src/pardes.zig | |
| parent | 387d6a39bad76c5eb2f56328f7cf7869a9a10559 (diff) | |
| download | pardes-3f6733c805d873a7af6a6064ace0cf5916f481da.tar.gz pardes-3f6733c805d873a7af6a6064ace0cf5916f481da.zip | |
A mouse event carries Shift and Alt as well as Ctrl, from SDL and from the tty's input; a program's wheel report carries them as xterm counts them, and Shift keeps the wheel pardes's own scroll
The reports are ghostty's encoder now (shift+4, meta+8, ctrl+16), with the
mode and format ghostty tracks. The detached wire carries the two new
bits: version 9. The test shell's ESC]777;mouse takes an optional fifth
field of modifiers.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/pardes.zig')
| -rw-r--r-- | src/pardes.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pardes.zig b/src/pardes.zig index f0d22d57..d6533b3b 100644 --- a/src/pardes.zig +++ b/src/pardes.zig @@ -3452,6 +3452,9 @@ pub const Mouse = struct { col: u16, row: u16, ctrl: bool = false, + shift: bool = false, + /// Alt, which xterm's mouse reports call meta. + alt: bool = false, body_hit: ?BodyHit = null, tag_hit: ?TagHit = null, /// A pixel frontend's press on the rule it draws at the top of this row, |
