version 1.15, 2014/04/25 06:31:48 |
version 1.16, 2014/04/25 18:07:41 |
|
|
.Op Fl t Ar tag |
.Op Fl t Ar tag |
.Op Ar |
.Op Ar |
.Sh DESCRIPTION |
.Sh DESCRIPTION |
|
The |
.Nm |
.Nm |
is a filter for paging through text one screenful at a time. |
pager displays text one screenful at a time. |
It uses |
After showing each screenful, it prompts the user for a command. |
.Xr terminfo 3 |
Most commands scroll the text or move to a different place |
so it can run on a variety of terminals. |
in the file, while some switch to another file. |
If no |
If no |
.Ar file |
.Ar file |
is specified, or if |
is specified, or if |
|
|
.Pq Ql - , |
.Pq Ql - , |
the standard input is used. |
the standard input is used. |
.Pp |
.Pp |
This version of the |
When showing the last line of a file, |
.Nm |
.Nm |
utility is actually |
displays a prompt indicating end of file and the name of the next file |
|
to examine, if any. |
|
It then waits for input from the user. |
|
Scrolling forward switches to the next file, |
|
or exits if there is none. |
|
.Pp |
|
The |
|
.Nm |
|
utility uses |
|
.Xr terminfo 3 |
|
so it can run on a variety of terminals. |
|
.Pp |
|
This version of |
|
.Nm |
|
is actually |
.Xr less 1 |
.Xr less 1 |
in disguise. |
in disguise. |
As such, it will also accept options documented in |
As such, it will also accept options documented in |
|
|
When changing the display, paint from the top line down. |
When changing the display, paint from the top line down. |
The default is to scroll from the bottom of the screen. |
The default is to scroll from the bottom of the screen. |
.It Fl e |
.It Fl e |
Exit on reaching end-of-file twice |
Exit immediately after showing the last line of the last file, |
without an intervening operation. |
without prompting the user for a command first. |
The default is to exit as soon as end-of-file is reached. |
|
If the file is shorter than a single screen |
|
.Nm |
|
exits at end-of-file regardless. |
|
.It Fl i |
.It Fl i |
Ignore case. |
Ignore case. |
Upper case and lower case are considered identical. |
Upper case and lower case are considered identical. |
|
|
.St -p1003.1-2008 |
.St -p1003.1-2008 |
specification, |
specification, |
though its presence is optional. |
though its presence is optional. |
Behavior for the |
|
.Fl e |
|
flag differs between this implementation and the specification. |
|
.Pp |
.Pp |
Functionality allowing the user to skip (as opposed to scroll) |
Functionality allowing the user to skip (as opposed to scroll) |
forward is not currently implemented. |
forward is not currently implemented. |