From e55244c4c64830d2830dea81ab6011b61c188d25 Mon Sep 17 00:00:00 2001 From: Nathan Bourgeois Date: Sat, 17 Oct 2020 21:13:10 -0400 Subject: [PATCH] BYOS support for system.isatty(fd: fd_t); (#6686) --- lib/std/os.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/os.zig b/lib/std/os.zig index 7a26126b1c36d0b85cfc1895e16d48e67df8a97d..899488456619c0d73cdd656f34433e7198dde9ba 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 { -- 2.54.0