diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2020-07-20 14:25:23 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2020-07-20 14:25:23 +0000 |
commit | 92b16e4e2ea640b350c569cd7e1f37cc4db9208d (patch) | |
tree | 342522f9ea67ec2b8503421174864e44357aaa02 /usr.bin/mandoc/mandoc.1 | |
parent | 85d50c57ddf31266967565cd3e6f27bacfeb994a (diff) |
Switch the default pager from "more -s" to "less".
POSIX explicitly allows using a different default pager if that
is documented. The pager provided in the OpenBSD base system is
less(1). It can merely be called as more(1) for compatibility.
Our man(1) implementation uses less(1) features that traditional
more(1) did not provide, in particular tagging. Besides, as noted
by deraadt@, the user interface of less(1) is slightly more refined
and preferable over the user inferface of more(1).
This switch was originally suggested by Ian Ropers.
As explained by jmc@ and deraadt@, the -s flag was added a very
long time ago when an antique version of groff(1) had an annoying
bug in terminal output that would randomly display blank lines in
the middle of pages. Clearly, -s has no longer been needed for
many years, so drop it from the default pager invocation.
OK deraadt@ jmc@ martijn@ job@
Diffstat (limited to 'usr.bin/mandoc/mandoc.1')
-rw-r--r-- | usr.bin/mandoc/mandoc.1 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/mandoc/mandoc.1 b/usr.bin/mandoc/mandoc.1 index d07eaba5c73..64e005ed175 100644 --- a/usr.bin/mandoc/mandoc.1 +++ b/usr.bin/mandoc/mandoc.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: mandoc.1,v 1.168 2020/06/15 18:05:25 schwarze Exp $ +.\" $OpenBSD: mandoc.1,v 1.169 2020/07/20 14:25:22 schwarze Exp $ .\" .\" Copyright (c) 2012, 2014-2020 Ingo Schwarze <schwarze@openbsd.org> .\" Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> @@ -15,7 +15,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: June 15 2020 $ +.Dd $Mdocdate: July 20 2020 $ .Dt MANDOC 1 .Os .Sh NAME @@ -650,7 +650,7 @@ It never affects the interpretation of input files. Any non-empty value of the environment variable .Ev MANPAGER is used instead of the standard pagination program, -.Xr more 1 ; +.Xr less 1 ; see .Xr man 1 for details. @@ -664,7 +664,7 @@ Specifies the pagination program to use when .Ev MANPAGER is not defined. If neither PAGER nor MANPAGER is defined, -.Xr more 1 +.Xr less 1 .Fl s is used. Only used if |