update +list-themes preview demo to Zig 0.16 syntax #14014
What do you want to change?I noticed the +list-themes theme preview renders a fake ziggzagg.zig sample that uses std.Io.getStdOut().writer() and pub fn main() !void, which is not valid in any Zig version. So i want to change the hardcoded sample in src/cli/list_themes.zig to current 0.16 idioms (pub fn main(init: std.process.Init), std.Io.File.stdout().writer(init.io, &buf), w.flush()) Why do you want to make this change?The stale demo shows incorrect Zig to anyone running ghostty +list-themes, i suppose it was left over from before the 0.16 migration (#12228) it wasnt updated in the migration I acknowledge that:
|
Answered by
jcollie
Aug 25, 2026
Replies: 1 comment 2 replies
|
Already vouched in the PR. Thanks for opening the discussion though! |
2 replies
Answer selected by
jcollie
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Already vouched in the PR. Thanks for opening the discussion though!