diff options
| author | Veikka Tuominen <git@vexu.eu> | 2023-05-24 16:03:44 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-24 16:03:44 +0300 |
| commit | 7cb2e653a20698b4b8050705bcb72afeea9df63b (patch) | |
| tree | e8d6161a0258448cd6fcb6bad9f81fc31ad56c8a /lib/std/builtin.zig | |
| parent | b2a514b3d2d2d880a41a26e798fb3c9ee014c229 (diff) | |
| parent | 93d9c9bf319e78045c70d1e6260b15e3319c82b9 (diff) | |
| download | zig-7cb2e653a20698b4b8050705bcb72afeea9df63b.tar.gz zig-7cb2e653a20698b4b8050705bcb72afeea9df63b.zip | |
Merge pull request #15806 from linusg/std-io-tty
std: Move TTY from std.debug to std.io and add missing colors
Diffstat (limited to 'lib/std/builtin.zig')
| -rw-r--r-- | lib/std/builtin.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/builtin.zig b/lib/std/builtin.zig index 56fab05d88..710aaefd5a 100644 --- a/lib/std/builtin.zig +++ b/lib/std/builtin.zig @@ -51,7 +51,7 @@ pub const StackTrace = struct { const debug_info = std.debug.getSelfDebugInfo() catch |err| { return writer.print("\nUnable to print stack trace: Unable to open debug info: {s}\n", .{@errorName(err)}); }; - const tty_config = std.debug.detectTTYConfig(std.io.getStdErr()); + const tty_config = std.io.tty.detectConfig(std.io.getStdErr()); try writer.writeAll("\n"); std.debug.writeStackTrace(self, writer, arena.allocator(), debug_info, tty_config) catch |err| { try writer.print("Unable to print stack trace: {s}\n", .{@errorName(err)}); |
