| ... | @@ -230,7 +230,6 @@ pub const File = struct { | ... | @@ -230,7 +230,6 @@ pub const File = struct { |
| 230 | } | 230 | } |
| 231 | if (self.isTty()) { | 231 | if (self.isTty()) { |
| 232 | if (self.handle == os.STDOUT_FILENO or self.handle == os.STDERR_FILENO) { | 232 | if (self.handle == os.STDOUT_FILENO or self.handle == os.STDERR_FILENO) { |
| 233 | // Use getenvC to workaround https://github.com/ziglang/zig/issues/3511 | | |
| 234 | if (os.getenvZ("TERM")) |term| { | 233 | if (os.getenvZ("TERM")) |term| { |
| 235 | if (std.mem.eql(u8, term, "dumb")) | 234 | if (std.mem.eql(u8, term, "dumb")) |
| 236 | return false; | 235 | return false; |