From 5d66ae0b2864dea14c2e3906bfc5c93a727c5518 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 1 Oct 2026 06:37:30 -0300 Subject: A terminal's petscii:on survives Dump and Restore: the dump says it, and the restored terminal draws its graphics as glyph art again An image pane's Petscii choice was dumped; a terminal's was not, so a Restore brought it back drawing pixels. dump.Terminal carries petscii, and a restored terminal is turned to glyph art when it was. Co-Authored-By: Claude Opus 5.5 --- src/dump.zig | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/dump.zig') diff --git a/src/dump.zig b/src/dump.zig index fa21eaa4..ca3751f2 100644 --- a/src/dump.zig +++ b/src/dump.zig @@ -189,6 +189,8 @@ pub const Terminal = struct { /// replays faithfully only if it holds the whole session at one size. stream_is_screen: bool = false, cursor: Cursor = .{}, + /// Petscii on: its kitty graphics drawn as glyph art by choice. + petscii: bool = false, }; pub const LocationRow = struct { @@ -935,6 +937,7 @@ fn initDump(gpa: std.mem.Allocator, opts: Options, zon_bytes: []const u8, previo restored.command_status = t.status; } if (revive) p.emitSpawn(i, restored.serial, t.cwd); + if (t.petscii and pardes.panes.terminal.petscii(restored) == false) pardes.panes.terminal.togglePetscii(restored); break :terminal restored; }, .file => try pardes.panes.File.restore(p, i, src), -- cgit v1.3