From 1bd434fd18e0cb769ca46849dac056a562ce7ce3 Mon Sep 17 00:00:00 2001 From: jacob gw Date: Mon, 1 Feb 2021 09:18:52 -0500 Subject: std.Progress: improve support for "dumb" terminals --- src/Compilation.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/Compilation.zig') diff --git a/src/Compilation.zig b/src/Compilation.zig index ae3385b2dc..180d49a196 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -1538,7 +1538,9 @@ pub fn getCompileLogOutput(self: *Compilation) []const u8 { } pub fn performAllTheWork(self: *Compilation) error{ TimerUnsupported, OutOfMemory }!void { - var progress: std.Progress = .{}; + // If the terminal is dumb, we dont want to show the user all the + // output. + var progress: std.Progress = .{ .dont_print_on_dumb = true }; var main_progress_node = try progress.start("", 0); defer main_progress_node.end(); if (self.color == .off) progress.terminal = null; -- cgit v1.2.3