Skip to content

Commit

Permalink
Disable VT-100 stuff on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Beyley committed Jan 20, 2024
1 parent 9b42930 commit 62ac3d4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ pub const std_options = struct {
std.debug.getStderrMutex().lock();
defer std.debug.getStderrMutex().unlock();

nosuspend stderr.print("{c}" ++ color ++ level_txt ++ prefix2 ++ format ++ "{c}[0m\n", .{esc_code} ++ args ++ .{esc_code}) catch return;
if (builtin.os.tag != .windows) {
nosuspend stderr.print("{c}" ++ color ++ level_txt ++ prefix2 ++ format ++ "{c}[0m\n", .{esc_code} ++ args ++ .{esc_code}) catch return;
} else {
nosuspend stderr.print(level_txt ++ prefix2 ++ format ++ "\r\n", args) catch return;
}
}

pub const log_level = if (builtin.mode == .Debug) .debug else .info;
Expand Down

0 comments on commit 62ac3d4

Please sign in to comment.