diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-17 00:38:41 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-17 12:15:01 -0300 |
| commit | 26929e67111e843db4ad27abb4f1341cf396158c (patch) | |
| tree | 8540497ac35231593742c17fb6df03ec0a16a76f /src/tui | |
| parent | 1d382a3ed42788e82301d0ce2a16ebc35c79046c (diff) | |
| download | pardes-26929e67111e843db4ad27abb4f1341cf396158c.tar.gz pardes-26929e67111e843db4ad27abb4f1341cf396158c.zip | |
Term: text through the interface, the editing of the copy back to the core: Term.scrollback and Term.scrollbackLen are its whole history as plain text (its body, Save), Term.textRows its rows as text with a prompt's own cells cut off (a plain Term.Rows), Term.viewport the rows its view shows, Term.promptPrefix how many bytes of a row are its prompt and Term.markRead says a step read them; the editing of the copy of a terminal's rows is the core's again, in edit.zig beside the text it edits: shellRows and the rows' cache (edit.RowsCache, edit.drawing), terminalLines (the rows with the copy spliced in), and in edit.zig's own flatSurface, editText, setEditText, pushUndo and undoStep the terminal's arms written out where they were dispatched to terminal.zig; the body's walk over the rows and the copy (BodyWalk) is body_layer.zig's, beside the bodyText it makes; screenTextAlloc, screenTextLen, cursorLines, flatSurface, editText, setEditText, pushUndo, undoStep and bodyText leave terminal.zig; nothing else changes
Diffstat (limited to 'src/tui')
| -rw-r--r-- | src/tui/tui.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tui/tui.zig b/src/tui/tui.zig index 8afa8ca8..b66a900f 100644 --- a/src/tui/tui.zig +++ b/src/tui/tui.zig @@ -2983,7 +2983,7 @@ test "TTY queued results reject old PTY generations and LSP request IDs" { shell.gens[0] = 2; _ = shell.apply(.{ .pty_read = .{ .id = 0, .gen = 1, .bytes = try gpa.dupe(u8, "old session\n") } }); _ = shell.apply(.{ .pty_read = .{ .id = 0, .gen = 2, .bytes = try gpa.dupe(u8, "current session\n") } }); - const text = try pardes.panes.terminal.screenTextAlloc(core.panes[0].?, gpa); + const text = try pardes.Term.scrollback(core.panes[0].?.terminal, gpa); defer gpa.free(text); try std.testing.expect(std.mem.indexOf(u8, text, "old session") == null); try std.testing.expect(std.mem.indexOf(u8, text, "current session") != null); |
