aboutsummaryrefslogtreecommitdiff
path: root/src/main.zig
diff options
context:
space:
mode:
authorVeikka Tuominen <git@vexu.eu>2023-05-24 16:03:44 +0300
committerGitHub <noreply@github.com>2023-05-24 16:03:44 +0300
commit7cb2e653a20698b4b8050705bcb72afeea9df63b (patch)
treee8d6161a0258448cd6fcb6bad9f81fc31ad56c8a /src/main.zig
parentb2a514b3d2d2d880a41a26e798fb3c9ee014c229 (diff)
parent93d9c9bf319e78045c70d1e6260b15e3319c82b9 (diff)
downloadzig-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 'src/main.zig')
-rw-r--r--src/main.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.zig b/src/main.zig
index 650741e5e4..afda88cebd 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -6044,9 +6044,9 @@ const ClangSearchSanitizer = struct {
};
};
-fn get_tty_conf(color: Color) std.debug.TTY.Config {
+fn get_tty_conf(color: Color) std.io.tty.Config {
return switch (color) {
- .auto => std.debug.detectTTYConfig(std.io.getStdErr()),
+ .auto => std.io.tty.detectConfig(std.io.getStdErr()),
.on => .escape_codes,
.off => .no_color,
};