2017-06-03 15:27:30 -04:00
|
|
|
.Dd October 5, 2016
|
2016-10-04 02:27:04 -04:00
|
|
|
.Dt PAGER 1
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm pager
|
|
|
|
.Nd display files one page at a time
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
|
|
|
.Op Fl Rr
|
|
|
|
.Ar file ...
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
2017-02-15 16:56:28 -05:00
|
|
|
displays the input one page at a time.
|
|
|
|
The input is the concatenation of the input files, or the standard input if no
|
|
|
|
files were specified and the standard input is not a terminal.
|
2016-10-04 02:27:04 -04:00
|
|
|
.Pp
|
|
|
|
The options are as follows:
|
|
|
|
.Bl -tag -width "12345678"
|
|
|
|
.It Fl R
|
|
|
|
Output only escape sequences that change font properties such as color and
|
|
|
|
boldness.
|
|
|
|
.It Fl r
|
2017-02-15 16:56:28 -05:00
|
|
|
Causes raw control characters to be dumped directly onto the terminal.
|
|
|
|
Usage of this option may cause output to be misleading for suspicious files, as
|
|
|
|
the escape codes in the file are rendered and can be used to hide parts of the
|
|
|
|
input.
|
|
|
|
Avoid the -r option if you want to see the actual bytes in the file, or use -R
|
|
|
|
to show only selected escape codes.
|
2017-02-11 10:25:54 -05:00
|
|
|
.El
|
2016-10-04 02:27:04 -04:00
|
|
|
.Sh COMMANDS
|
|
|
|
.Nm
|
|
|
|
supports the following key commands:
|
|
|
|
.Bl -tag -width "12345678"
|
2021-04-18 18:06:31 -04:00
|
|
|
.It Sy Enter , Down Arrow , j , ^N
|
2016-10-04 02:27:04 -04:00
|
|
|
Scroll the file one line down.
|
2021-04-18 18:06:31 -04:00
|
|
|
.It Sy Up Arrow , k , ^P
|
2016-10-04 02:27:04 -04:00
|
|
|
Scroll the file one line up.
|
2021-04-18 18:06:31 -04:00
|
|
|
.It Sy Space , Page Down , f , ^F , ^V
|
2016-10-04 02:27:04 -04:00
|
|
|
Scroll the file one page down.
|
2021-04-18 18:06:31 -04:00
|
|
|
.It Sy Page Up , b , ^B , ESC-v
|
2016-10-04 02:27:04 -04:00
|
|
|
Scroll the file one page up.
|
2021-04-18 18:06:31 -04:00
|
|
|
.It Sy End , G , >
|
2016-10-04 02:27:04 -04:00
|
|
|
Scroll all the way down to the end of the file.
|
2021-04-18 18:06:31 -04:00
|
|
|
.It Sy Home , g , <
|
2016-10-04 02:27:04 -04:00
|
|
|
Scroll all the way up to the beginning of the file.
|
2021-04-18 18:06:31 -04:00
|
|
|
.It Sy q , Q
|
2016-10-04 02:27:04 -04:00
|
|
|
Exit the pager.
|
|
|
|
.El
|
|
|
|
.Sh EXIT STATUS
|
|
|
|
.Nm
|
|
|
|
will exit 0 on success and non-zero otherwise.
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr editor 1
|