aboutsummaryrefslogtreecommitdiff
path: root/lib/std/os.zig
diff options
context:
space:
mode:
authorNathan Bourgeois <IridescentRosesFall@gmail.com>2020-10-17 21:13:10 -0400
committerGitHub <noreply@github.com>2020-10-17 21:13:10 -0400
commite55244c4c64830d2830dea81ab6011b61c188d25 (patch)
tree32c4907becc4880b5072eb13be06df235780ec4a /lib/std/os.zig
parentb014bc77c8c5b89a8c0b5d4a995726ec6b350939 (diff)
downloadzig-e55244c4c64830d2830dea81ab6011b61c188d25.tar.gz
zig-e55244c4c64830d2830dea81ab6011b61c188d25.zip
BYOS support for system.isatty(fd: fd_t); (#6686)
Diffstat (limited to 'lib/std/os.zig')
-rw-r--r--lib/std/os.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/os.zig b/lib/std/os.zig
index 7a26126b1c..8994884566 100644
--- a/lib/std/os.zig
+++ b/lib/std/os.zig
@@ -2588,7 +2588,7 @@ pub fn isatty(handle: fd_t) bool {
}
}
}
- unreachable;
+ return system.isatty(handle) != 0;
}
pub fn isCygwinPty(handle: fd_t) bool {