about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-02-02 22:11:40 -1000
committerEric Wong <e@80x24.org>2021-02-04 01:37:09 +0000
commit36ee63d30ee076e6f6a8fdeabd50bf6757a3fdd6 (patch)
tree9cf56942a4e1c4ac97e4465c28c25cd40d48af78
parentd692a0550b58bb16770000aeaffb0308da0c9328 (diff)
downloadpublic-inbox-36ee63d30ee076e6f6a8fdeabd50bf6757a3fdd6.tar.gz
Because some commands have many options which take up
multiple screens.
-rw-r--r--lib/PublicInbox/LEI.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/PublicInbox/LEI.pm b/lib/PublicInbox/LEI.pm
index 3cb7a327..005f6f7a 100644
--- a/lib/PublicInbox/LEI.pm
+++ b/lib/PublicInbox/LEI.pm
@@ -507,7 +507,9 @@ EOF
                 $msg .= $rhs;
                 $msg .= "\n";
         }
-        print { $self->{$errmsg ? 2 : 1} } $msg;
+        my $out = $self->{$errmsg ? 2 : 1};
+        start_pager($self) if -t $out;
+        print $out $msg;
         x_it($self, $errmsg ? 1 << 8 : 0); # stderr => failure
         undef;
 }