diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-16 23:14:39 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-17 12:15:01 -0300 |
| commit | a7a446e0f32cb9daaa06689c91ef7de01bfc968c (patch) | |
| tree | c51501cb55862f0b527606292e61d04e0e78edaf /src/terminal.zig | |
| parent | b2163c0a53a6276bc8e1211e9a7c9584bb1ccb2e (diff) | |
| download | pardes-a7a446e0f32cb9daaa06689c91ef7de01bfc968c.tar.gz pardes-a7a446e0f32cb9daaa06689c91ef7de01bfc968c.zip | |
colors: the 256-colour palette is pardes's own, colors.xterm (the sixteen named colours Art.zig kept, xterm's 6x6x6 cube and 24-grey ramp, at comptime), so Art.zig and gui.zig stop importing ghostty-vt: Art's Petscii takes its first sixteen and drops its comptime check against the emulator, gui.zig's palColor goes and its two .index cells read the table; terminal.zig's test holds all 256 entries to ghostty-vt's color.default; the changelog says so
Diffstat (limited to 'src/terminal.zig')
| -rw-r--r-- | src/terminal.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/terminal.zig b/src/terminal.zig index 68b3adde..46790de1 100644 --- a/src/terminal.zig +++ b/src/terminal.zig @@ -3420,3 +3420,7 @@ test "a program asking the cell size in pixels (CSI 16 t) is told the shell's" { p.update(.{ .output = .{ .pane = 0, .bytes = "\x1b[16t" } }); try std.testing.expectEqualStrings("0:\x1b[6;20;10t\n", try ptyWritesByPane(p, &out)); } + +test "colors.xterm is the palette the emulator starts from, all 256" { + for (pardes.colors.xterm, ghostty_vt.color.default) |ours, its| try std.testing.expectEqual(ours, [3]u8{ its.r, its.g, its.b }); +} |
