summaryrefslogtreecommitdiff
path: root/Userland/Utilities/less.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Utilities/less.cpp')
-rw-r--r--Userland/Utilities/less.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Utilities/less.cpp b/Userland/Utilities/less.cpp
index 7ac07186b2..3662ba59a2 100644
--- a/Userland/Utilities/less.cpp
+++ b/Userland/Utilities/less.cpp
@@ -288,6 +288,8 @@ static String get_key_sequence()
int main(int argc, char** argv)
{
+ VERIFY(isatty(STDOUT_FILENO));
+
char const* filename = "-";
char const* prompt = "?f%f :.(line %l)?e (END):.";
bool dont_switch_buffer = false;