| ... | ... | @@ -143,11 +143,9 @@ pub const File = struct { |
| 143 | 143 | } |
| 144 | 144 | if (builtin.os.tag == .wasi) { |
| 145 | 145 | // WASI sanitizes stdout when fd is a tty so ANSI escape codes |
| 146 | | // will not be interpreted as actual cursor commands. |
| 147 | | if (self.handle == os.STDOUT_FILENO and self.isTty()) return false; |
| 146 | // will not be interpreted as actual cursor commands, and |
| 148 | 147 | // stderr is always sanitized. |
| 149 | | if (self.handle == os.STDERR_FILENO) return false; |
| 150 | | return true; |
| 148 | return false; |
| 151 | 149 | } |
| 152 | 150 | if (self.isTty()) { |
| 153 | 151 | if (self.handle == os.STDOUT_FILENO or self.handle == os.STDERR_FILENO) { |