summaryrefslogtreecommitdiff
path: root/test
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 /test
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 'test')
-rw-r--r--test/terminal.zig7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/terminal.zig b/test/terminal.zig
index e6c530d5..b7b9cd33 100644
--- a/test/terminal.zig
+++ b/test/terminal.zig
@@ -34,7 +34,6 @@ const prompt = Term.prompt;
const scroll = Term.scroll;
const scrollback = Term.scrollback;
const commandOutput = Term.commandOutput;
-const petscii = Term.petscii;
const filterOf = emu.filterOf;
const filterPalette = emu.filterPalette;
const keyedRgb = emu.keyedRgb;
@@ -892,7 +891,7 @@ test "a terminal's image is a placement whatever the frontend draws, and the Pet
try pardes.dump.dumpState(p);
const restored = try pardes.dump.restore(p, p.dump_out.?, "/tmp/pardes.dump.zon");
defer restored.deinit();
- try std.testing.expectEqual(@as(?bool, true), petscii(restored.panes[0].?.terminal));
+ try std.testing.expect(restored.panes[0].?.term_petscii);
try std.testing.expect(p.executeBuiltinLine(0, "Petscii"));
_ = frame.reset(.retain_capacity);
s = try p.render(frame.allocator());
@@ -904,12 +903,12 @@ test "a new terminal draws its program's images as pixels, and one without image
const gpa = std.testing.allocator;
const p = try Pardes.init(gpa, .{ .cols = 80, .rows = 24, .shells = 1 });
defer p.deinit();
- try std.testing.expectEqual(false, petscii(p.panes[0].?.terminal).?);
+ try std.testing.expect(!p.panes[0].?.term_petscii);
// A pane without images says nothing of them.
try std.testing.expect(std.mem.indexOf(u8, try tagline.tagPrefix(p, p.panes[0].?), "petscii") == null);
const id = p.freeSlot().?;
const fresh = try p.newShell(id, "");
- try std.testing.expectEqual(false, petscii(fresh.terminal).?);
+ try std.testing.expect(!fresh.term_petscii);
}
test "a program asking the cell size in pixels (CSI 16 t) is told the shell's" {