summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorChris Boesch <chrboesch@noreply.codeberg.org>2025-11-01 15:33:46 +0100
committerChris Boesch <chrboesch@noreply.codeberg.org>2025-11-01 15:33:46 +0100
commitc45b9cd383b1463ca2e8cc93eb7ef38c4242d53a (patch)
tree86168d0e07293dfda8ace5810e9f84094d37b041 /build.zig
parent7ad02b084fa129e4f920e8b66072ba55524740eb (diff)
parent26fc4fdaaa4501db81e22a47b111f2c289c7e13f (diff)
Merge pull request 'Update for new zig IO' (#315) from esensar/exercises:fix/zig-0.16-new-io into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/315
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig8
1 files changed, 4 insertions, 4 deletions
diff --git a/build.zig b/build.zig
index 9a65013..2a16899 100644
--- a/build.zig
+++ b/build.zig
@@ -570,12 +570,12 @@ const ZiglingStep = struct {
// Render compile errors at the bottom of the terminal.
// TODO: use the same ttyconf from the builder.
- const ttyconf: std.Io.tty.Config = if (use_color_escapes)
- .escape_codes
+ const color: std.zig.Color = if (use_color_escapes)
+ .on
else
- .no_color;
+ .off;
if (self.step.result_error_bundle.errorMessageCount() > 0) {
- self.step.result_error_bundle.renderToStdErr(.{ .ttyconf = ttyconf });
+ self.step.result_error_bundle.renderToStdErr(.{}, color);
}
}
};