diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-19 22:15:16 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-19 22:26:54 -0300 |
| commit | ba10cc4ff30d08d27ad35576df04a03282b6521b (patch) | |
| tree | e367489aa56f36d71485ce07b4022b512139a94c /core/builtins.zig | |
| parent | 98b2bc05cd7b6c78952600029939bbc44c5fc56b (diff) | |
| download | pardes-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/builtins.zig')
| -rw-r--r-- | core/builtins.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/builtins.zig b/core/builtins.zig index 6f37e86d..66b22dcc 100644 --- a/core/builtins.zig +++ b/core/builtins.zig @@ -749,13 +749,13 @@ pub const Petscii = struct { pub const takes_arg = true; pub fn run(c: Ctx) void { // `on|off` sets it, as the tag's `petscii:on` reads; none flips it. - const now = if (c.pane.addon) |k| k.art.glyph else panes.Term.petscii(c.pane.terminal) orelse false; + const now = if (c.pane.addon) |k| k.art.glyph else c.pane.terminal != null and c.pane.term_petscii; if (c.arg != null) { const want = stateArg(c, OnOff, "Petscii", "on or off") orelse return; if ((want == .on) == now) return; } if (c.pane.addon) |k| k.art.glyph = !k.art.glyph; - if (c.pane.terminal) |state| panes.Term.togglePetscii(state); + if (c.pane.terminal != null) c.pane.term_petscii = !c.pane.term_petscii; } }; |
