summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Nystrom <sam@samnystrom.dev>2023-06-27 00:25:33 -0400
committerSam Nystrom <sam@samnystrom.dev>2023-06-27 00:25:33 -0400
commita195b711b5a8b86ece8a1ce1a9c9fbc37e38bc47 (patch)
tree1005abf402d80a29c6f4acb47d036a7a4e3fcb31
parent7e6307c4fe55f9ea80f3985b262990f18f95251a (diff)
Remove check for tty on stdin0.2.0
hare-vt uses /dev/tty for this, and it is no longer necessary anyway since we now handle EOF properly.
-rw-r--r--main.ha4
1 files changed, 0 insertions, 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) {