summaryrefslogtreecommitdiff
path: root/test/process/tty_layout.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-24 23:20:24 -0300
committerGabriel Schneider <[email protected]>2026-11-24 23:37:04 -0300
commit5c938585963818743139439bfc5db6a15c90e10b (patch)
treee4f16fe8896bcba5678ea05b6805d88c0b11f640 /test/process/tty_layout.zig
parent5c941c2278a4e099f3cd4bae1b29a783f88a95b0 (diff)
downloadpardes-5c938585963818743139439bfc5db6a15c90e10b.tar.gz
pardes-5c938585963818743139439bfc5db6a15c90e10b.zip
Messages, body_layer, edit, mouse, panes: a click lands on what is drawn under it while a message's detail is unrolled under the caret's line, and the detail's rows are read-only text for the mouse (walk UI G item 2d, the user's "everything a pane shows is regular text"): C's detail rows (body_layer.zig messageGhosts) pushed the rows under the caret's line down in the drawing only, so the mouse, which maps a body row through the row map (Pane.wrapAt), landed a click below them that many rows off (C's report: 'to fix'), and a click on a detail row landed on a line under it; THE FIX: where the detail goes is the step's, as the notice bands are: Messages.detailUnder (the first message naming the caret's line, its lines that fit under that line's last row, in the pane with the keyboard, its body) is made in Messages.collectNotices (the top of update, presented, sync, place) into Pane.ghost_at and ghost_rows (derived: root.zig's kept_out says so), messageGhosts draws from them (it no longer finds the detail itself), and the mouse maps a drawn body row to the row map with Pane.textRow (edit.pointerTextSelection, both the grid's and a body hit's; mouse.dragUpdate's sweep end): a row under the detail is ghost_rows higher, a row of the detail is the line it explains (B1 there puts the caret on that line, the detail kept); B2 and B3 on a word of the detail Exec and Look it as a typed word would be (mouse.zig, body_layer.wordAt reads the word as it is drawn: the body layer's row, else the grid's); a step reads only what its own state makes, so every replica's click lands alike; cost: one more check a pane at collectNotices (none without a live message, the detail only in the pane with the keyboard), nothing a frame; TEST FIRST: body_layer.zig 'a click under a message's detail lands on the row drawn there, a click on the detail on the line it explains, and B2 on a word of the detail runs it' (on the parent: expected 4, found 6, the click on line 5 as drawn landing on line 7's row); NOT DONE: B1's sweep cannot select the detail's text itself (it is no buffer's; the band has the same gap, A's report), a hover underlines the word of the line under the detail row; tui core-test 1036/1205 (169 skipped), process-test 0 of 146 failed
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'test/process/tty_layout.zig')
0 files changed, 0 insertions, 0 deletions