chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
691dee8
)
pager: don't start pager if the terminal is explicitly set to TERM=dumb
author
Lennart Poettering
<lennart@poettering.net>
Mon, 30 May 2016 16:23:54 +0000
(18:23 +0200)
committer
Sven Eden
<yamakuzure@gmx.net>
Fri, 16 Jun 2017 08:12:59 +0000
(10:12 +0200)
As suggested here:
https://bugs.freedesktop.org/show_bug.cgi?id=64737#c8
This adds a new call terminal_is_dumb() and makes use of this where
appropriate.
src/shared/pager.c
patch
|
blob
|
history
diff --git
a/src/shared/pager.c
b/src/shared/pager.c
index 82bca83f576ff30b4bceccbde4312d404ef90c2a..1fdf8ed689bb821475d0731575a853241b92003c 100644
(file)
--- a/
src/shared/pager.c
+++ b/
src/shared/pager.c
@@
-63,7
+63,7
@@
int pager_open(bool no_pager, bool jump_to_end) {
if (pager_pid > 0)
return 1;
- if (
!on_tty
())
+ if (
terminal_is_dumb
())
return 0;
pager = getenv("SYSTEMD_PAGER");