summaryrefslogtreecommitdiff
path: root/core/panes.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-19 22:15:16 -0300
committerGabriel Schneider <[email protected]>2026-11-19 22:26:54 -0300
commitba10cc4ff30d08d27ad35576df04a03282b6521b (patch)
treee367489aa56f36d71485ce07b4022b512139a94c /core/panes.zig
parent98b2bc05cd7b6c78952600029939bbc44c5fc56b (diff)
downloadpardes-ba10cc4ff30d08d27ad35576df04a03282b6521b.tar.gz
pardes-ba10cc4ff30d08d27ad35576df04a03282b6521b.zip
Term: the two things a speculation writes into a terminal and no rollback puts back move into the pane, which the copy holds and the digest covers: the cell its program last heard the mouse at (Pane.term_mouse, handed to Term.mouse and Term.wheel, which ghostty's encoder reads and writes) and its kitty graphics as glyph art (Pane.term_petscii, which the Petscii builtin flips and the images' draw takes in ImagesAt): the sizing's table (reports/pardes-term-bytes.md, section 1; the brief's step 1c); Parts loses both (a dump of an older build carries them and they are passed over by name: a terminal's Petscii chosen before an Upgrade is off after it), Ops loses petscii and togglePetscii; term-test 17/17, core-test 848/991 (143 skipped), shell-test 1027/1030
Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'core/panes.zig')
-rw-r--r--core/panes.zig6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/panes.zig b/core/panes.zig
index b928917a..56a8e82a 100644
--- a/core/panes.zig
+++ b/core/panes.zig
@@ -125,6 +125,12 @@ pub const Pane = struct {
pub const Focus = enum { body, tag };
pub const SessionView = struct { wrap: bool = true, layered: bool = true, body_h: u32 = 0, tagline_h: u32 = 0, rect_h: u16 = 0 };
terminal: ?*Term.State = null,
+ /// Its terminal's, kept by the pane, which a rollback puts back, not by
+ /// the emulator, which none does (a speculation writes them): the grid
+ /// cell its program last heard the mouse at (motion is told once a
+ /// cell), and its kitty graphics drawn as glyph art (Petscii).
+ term_mouse: ?Term.Coordinate = null,
+ term_petscii: bool = false,
gpa: std.mem.Allocator,
serial: u32 = 0,
/// What the control filesystem keeps of this pane -- addr and limit, the