Commit e55244c4c6

Nathan Bourgeois <IridescentRosesFall@gmail.com>
2020-10-18 03:13:10
BYOS support for system.isatty(fd: fd_t); (#6686)
1 parent b014bc7
Changed files (1)
lib
std
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 {