summaryrefslogtreecommitdiff
path: root/src/Effect.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-17 00:38:41 -0300
committerGabriel Schneider <[email protected]>2026-11-17 12:15:01 -0300
commit26929e67111e843db4ad27abb4f1341cf396158c (patch)
tree8540497ac35231593742c17fb6df03ec0a16a76f /src/Effect.zig
parent1d382a3ed42788e82301d0ce2a16ebc35c79046c (diff)
downloadpardes-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/Effect.zig')
-rw-r--r--src/Effect.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Effect.zig b/src/Effect.zig
index 2af28dd7..e161d1db 100644
--- a/src/Effect.zig
+++ b/src/Effect.zig
@@ -164,7 +164,7 @@ pub fn perform(p: *Pardes, e: Effect) void {
return;
}
if (!pane.isTerminal()) return;
- const text = panes.terminal.screenTextAlloc(pane, p.gpa) catch |err| return p.reportError(st.pane, "Save", err);
+ const text = pardes.Term.scrollback(pane.terminal, p.gpa) catch |err| return p.reportError(st.pane, "Save", err);
defer p.gpa.free(text);
if (writeChecked(p, st.pane, st.serial, st.path.slice(), text, 0)) |still|
ctlfs.events.noteLogAs(p, .save, still, st.path.slice());