diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-05 21:02:51 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-05 22:08:14 -0300 |
| commit | d8e5fc18f5923c4213de1cb4105a677e725200af (patch) | |
| tree | ec9adccb3ccb3118f1422777180b766cce55ba2b /src/terminal.zig | |
| parent | 5b135dc60d4e9f77be0a4f883439f3200ac30d30 (diff) | |
| download | pardes-d8e5fc18f5923c4213de1cb4105a677e725200af.tar.gz pardes-d8e5fc18f5923c4213de1cb4105a677e725200af.zip | |
fields #41, a view's frontend is one field: windowed, native_images and native_image_patches, the three fields Event.frontend carries, are the session's frontend, a Frontend, so update's frontend arm is p.frontend = f where it copied them one by one; native_image_patches, each process's own, is said so on Frontend (its replica .local), where the session's list said it, so the digest and a dump leave it out as before, and the tape watches frontend where it watched the three (a host's write of patches alone, which only drawing reads, is no longer a set of its own on the tape); the reads in 22 files say p.frontend.native_images (macos.zig's by text, built nowhere here; dump.zig, the persistence agent's, only where it names native_images); views.zig's per-view fields name frontend; a dump written before this change loads it as the default once: an Upgrade or Restore from it comes back as a terminal's view without native images until its frontend says otherwise (a window's says so at once), and the wire's semantics change; gates on tui: core-test 960/960, behaviour-test 238/238, pane-test 171/172 (1 skipped), snap all 108 scripts ok; gui unit-test 1518/1519 (1 skipped)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/terminal.zig')
| -rw-r--r-- | src/terminal.zig | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/terminal.zig b/src/terminal.zig index 22371a78..6f9e2071 100644 --- a/src/terminal.zig +++ b/src/terminal.zig @@ -3219,7 +3219,7 @@ test "a terminal's kitty graphics image is drawn where its program placed it, an const gpa = std.testing.allocator; const p = try Pardes.init(gpa, .{ .cols = 80, .rows = 24, .shells = 1 }); defer p.deinit(); - p.native_images = true; + p.frontend.native_images = true; p.active = 0; p.update(.{ .resize = .{ .cols = 80, .rows = 24, .cell_pixels = .{ .w = 10, .h = 20 } } }); var frame = std.heap.ArenaAllocator.init(gpa); @@ -3278,7 +3278,7 @@ test "ED 3 takes away a kitty placement whose row it erased: it never comes back const gpa = std.testing.allocator; const p = try Pardes.init(gpa, .{ .cols = 80, .rows = 24, .shells = 1 }); defer p.deinit(); - p.native_images = true; + p.frontend.native_images = true; p.update(.{ .resize = .{ .cols = 80, .rows = 24, .cell_pixels = .{ .w = 10, .h = 20 } } }); var frame = std.heap.ArenaAllocator.init(gpa); defer frame.deinit(); @@ -3345,7 +3345,7 @@ test "a virtual kitty placement shows through its placeholder cells, which draw const gpa = std.testing.allocator; const p = try Pardes.init(gpa, .{ .cols = 80, .rows = 24, .shells = 1 }); defer p.deinit(); - p.native_images = true; + p.frontend.native_images = true; p.update(.{ .resize = .{ .cols = 80, .rows = 24, .cell_pixels = .{ .w = 10, .h = 20 } } }); var frame = std.heap.ArenaAllocator.init(gpa); defer frame.deinit(); @@ -3397,7 +3397,7 @@ test "without pixels, or by the Petscii builtin, a terminal's image is glyph art }.check; // A shell that draws no pixels (a tty under no kitty graphics): forced. - p.native_images = false; + p.frontend.native_images = false; var s = try p.render(frame.allocator()); try std.testing.expectEqual(@as(usize, 0), imagePlaces(s).len); try std.testing.expect(painted(s.at(tx, y)) and painted(s.at(tx + 1, y))); @@ -3407,7 +3407,7 @@ test "without pixels, or by the Petscii builtin, a terminal's image is glyph art // Pixels where they can be drawn; the builtin flips the pane to glyphs // and back. - p.native_images = true; + p.frontend.native_images = true; _ = frame.reset(.retain_capacity); s = try p.render(frame.allocator()); try std.testing.expectEqual(@as(usize, 1), imagePlaces(s).len); |
