| ... | ... | @@ -181,7 +181,7 @@ pub const OutStream = struct { |
| 181 | 181 | pub fn isTty(self: &OutStream) -> %bool { |
| 182 | 182 | if (is_posix) { |
| 183 | 183 | if (builtin.link_libc) { |
| 184 | | return c.isatty(self.fd) == 0; |
| 184 | return c.isatty(self.fd) != 0; |
| 185 | 185 | } else { |
| 186 | 186 | return system.isatty(self.fd); |
| 187 | 187 | } |
| ... | ... | @@ -435,7 +435,7 @@ pub const InStream = struct { |
| 435 | 435 | pub fn isTty(self: &InStream) -> %bool { |
| 436 | 436 | if (is_posix) { |
| 437 | 437 | if (builtin.link_libc) { |
| 438 | | return c.isatty(self.fd) == 0; |
| 438 | return c.isatty(self.fd) != 0; |
| 439 | 439 | } else { |
| 440 | 440 | return system.isatty(self.fd); |
| 441 | 441 | } |