From a195b711b5a8b86ece8a1ce1a9c9fbc37e38bc47 Mon Sep 17 00:00:00 2001 From: Sam Nystrom Date: Tue, 27 Jun 2023 00:25:33 -0400 Subject: Remove check for tty on stdin hare-vt uses /dev/tty for this, and it is no longer necessary anyway since we now handle EOF properly. --- main.ha | 4 ---- 1 file changed, 4 deletions(-) diff --git a/main.ha b/main.ha index 953e917..093e440 100644 --- a/main.ha +++ b/main.ha @@ -60,10 +60,6 @@ export fn main() void = { os::exit(1); }; - if (!tty::isatty(os::stdin_file)) { - fmt::fatal("Error: stdin is not a tty"); - }; - let path = cmd.args[0]; let mode = os::stat(path)!.mode; if (mode & fs::mode::DIR != 0) { -- cgit v1.2.3