zig test: Add proper detection for Windows console
This commit is contained in:
committed by
Veikka Tuominen
parent
df74c45fa7
commit
f3517a1aa6
@@ -37,7 +37,8 @@ pub fn main() void {
|
||||
.dont_print_on_dumb = true,
|
||||
};
|
||||
const root_node = progress.start("Test", test_fn_list.len);
|
||||
const have_tty = progress.terminal != null and progress.supports_ansi_escape_codes;
|
||||
const have_tty = progress.terminal != null and
|
||||
(progress.supports_ansi_escape_codes or progress.is_windows_terminal);
|
||||
|
||||
var async_frame_buffer: []align(std.Target.stack_align) u8 = undefined;
|
||||
// TODO this is on the next line (using `undefined` above) because otherwise zig incorrectly
|
||||
|
||||
Reference in New Issue
Block a user