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