summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Userland/more.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/Userland/more.cpp b/Userland/more.cpp
index e50e7fa186..2299438aa3 100644
--- a/Userland/more.cpp
+++ b/Userland/more.cpp
@@ -50,11 +50,7 @@ int main(int argc, char** argv)
return 1;
}
- key_fd = open(ttyname(1), O_RDONLY);
- if (key_fd < 0) {
- perror("open");
- return 1;
- }
+ key_fd = STDOUT_FILENO;
struct winsize ws;
ioctl(1, TIOCGWINSZ, &ws);