summaryrefslogtreecommitdiff
path: root/core/Term.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-24 20:20:53 -0300
committerGabriel Schneider <[email protected]>2026-11-24 20:40:36 -0300
commit1ebc8974489e46aee26409d54d7f1de567dbbb4a (patch)
treec2e6147e9342f01de9dfae54117ef7552cc393cc /core/Term.zig
parentc40d447e63663d947f241d60a2bdb8ce1bd141c0 (diff)
downloadpardes-1ebc8974489e46aee26409d54d7f1de567dbbb4a.tar.gz
pardes-1ebc8974489e46aee26409d54d7f1de567dbbb4a.zip
messages: a message is said where its cause is: the mark in its pane's box, its words at its line, its detail under the caret, progress at its tag's end, and a failed run's report its places (pick-ui SPEC §10.2, walk UI line C item 3): the mark is the glyph of the most important live error, question, warning or progress about a pane (its pane, its file, a place's file: Messages.markOf), drawn in the box's second cell (the grid's dirty cell, its ground kept dirty under unsaved text) and never in the tag's text, so it rewraps no tag and moves no row (written as a prefix word it could push a column under its minimums: the random placement test in ninep/tree.zig caught that); a message's places in a file shown are its glyph and words two cells after the end of their line, and with the keyboard in that body and its caret on that line the message's detail as ghost rows under it, the rows below pushed down for as long (body_layer.zig messageGhosts: drawn, never written, ruling R3; bounded by the rows shown and 16 messages of 4 places); a pane's progress at its tag's first row's right end and a server's (a message of no pane: the language server's status, dev/Inbox.zig and runtime/macos.zig now say it of none) at the workspace tag's, where the row has room, and setStatus with no text ends it; a command pane's run that fails is read back from its last 400 rows for a compiler's places (path:line:col: error|warning|note, a relative path its directory's: Messages.readPlaces), and names them as an error of that pane ('exit N', its places, the rows after its first error its detail), which the pane's next run takes away (SPEC §11); say returns the message it made; tests: Messages.zig 'a compiler's report names its places ...', 'a burst of the same message is one message, counted, and moves nothing on the screen' (×10, rects and tag rows equal), body_layer.zig 'a build error is said where its cause is: the mark ..., its words after its line, its detail under the caret's line pushing the rows below down, the walk on the notice row', draw.zig 'progress is said at the right end of its tag ...', panes.zig 'a command whose run fails naming places is an error of its pane ...'; Term.zig's calls list takes the run's rows read (S1); tui: core-test, shell-test, pane-test, behaviour-test pass; process-test 0 of 146 failed after shellset's and lsp's goldens took the mark (✗ in the box of the pane whose refusal is live)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'core/Term.zig')
-rw-r--r--core/Term.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Term.zig b/core/Term.zig
index a83bf927..d4baf4e8 100644
--- a/core/Term.zig
+++ b/core/Term.zig
@@ -422,7 +422,7 @@ pub const calls = [_]struct { []const u8, []const u8, []const u8 }{
.{ "endOutputHere", "ninep/pty.zig:1", "WRITE: a 9P pty/run's step ends a command's output at the cursor: the session's step, replayed as such" },
.{ "replies", "Core.zig:1", "WRITE: a step drains the reply buffer (in the digest), counted when it held any (the feed's own unit, which filled it); only the session writes it to the pty (pty_write is off the tape)" },
// ---- reads by a step: in the digest ----
- .{ "grid", "Core.zig:2 ansi.zig:3 body_layer.zig:3 draw.zig:2 dump.zig:4 echo.zig:8 exec.zig:2 layout.zig:2 panes.zig:5 replica.zig:2", "READ: the size, the history's length, the cursor: in the digest (a view's place is its pane's; ansi.zig, body_layer.zig, draw.zig, echo.zig: a draw's)" },
+ .{ "grid", "Core.zig:2 ansi.zig:3 body_layer.zig:3 draw.zig:2 dump.zig:4 echo.zig:8 exec.zig:2 layout.zig:2 panes.zig:6 replica.zig:2", "READ: the size, the history's length, the cursor: in the digest (a view's place is its pane's; ansi.zig, body_layer.zig, draw.zig, echo.zig: a draw's)" },
.{ "modes", "Core.zig:5 draw.zig:1 dump.zig:2 echo.zig:3 exec.zig:3 mouse.zig:4 ninep/pty.zig:3 panes.zig:2 replica.zig:1", "READ: the program's modes (mouse, focus, bracketed paste, the alternate screen): in the digest (draw.zig, echo.zig: a draw's; panes.zig: a view scrolls no history on the alternate screen)" },
.{ "prompt", "Core.zig:1 builtins.zig:1 echo.zig:1 exec.zig:3 ninep/pty.zig:1 panes.zig:1", "READ: the OSC 133 cycle: in the digest (`marksOf`); Core.zig's and ninep/pty.zig's also taped (`.prompt`, each side's compared)" },
.{ "promptPrefix", "body_layer.zig:1 edit.zig:1 exec.zig:1", "READ: a row's prompt cells (`promptCut`): the active area's in the digest; a history row's text is not (below)" },
@@ -441,7 +441,7 @@ pub const calls = [_]struct { []const u8, []const u8, []const u8 }{
.{ "commandOutput", "ninep/pty.zig:1", "READ, NOT COVERED: a command's output rows (a 9P pty/run): taped as the session's answer" },
.{ "textRows", "edit.zig:2", "READ, NOT COVERED: every row's text, the history's among them (a selection, a Look over a shell)" },
.{ "viewport", "body_layer.zig:1 replica.zig:1", "READ: the rows' text a view's place (in the digest, with its pane) shows (body_layer.zig: a draw's; replica.zig: a test's)" },
- .{ "editRows", "ansi.zig:1", "READ: rows' text for a draw" },
+ .{ "editRows", "ansi.zig:1 panes.zig:1", "READ: rows' text for a draw; a command's last rows read for the places its report names when it fails (panes.zig commandDone): in the digest as the emulator's rows are" },
// ---- local ----
.{ "due", "Core.zig:1", "LOCAL: its next wake (a blink, an animation): the loop's, never a step's state" },
.{ "cellPixels", "ansi.zig:1 panes.zig:2", "LOCAL: a frontend's draw sets its view's cell size (ansi.zig); a step sets the view's (in the digest) before each feed (panes.zig), so a reply to CSI 16 t is the step's" },