The more utility shall conform to the Base Definitions volume of
POSIX.1‐2017, Section 12.2, Utility Syntax Guidelines, except
that '+'
may be recognized as an option delimiter as well as '-'
.
The following options shall be supported:
-c
If a screen is to be written that has no lines in
common with the current screen, or more is writing its
first screen, more shall not scroll the screen, but
instead shall redraw each line of the screen in turn,
from the top of the screen to the bottom. In addition,
if more is writing its first screen, the screen shall
be cleared. This option may be silently ignored on
devices with insufficient terminal capabilities.
-e
Exit immediately after writing the last line of the
last file in the argument list; see the EXTENDED
DESCRIPTION section.
-i
Perform pattern matching in searches without regard to
case; see the Base Definitions volume of POSIX.1‐2017,
Section 9.2, Regular Expression General Requirements.
-n
number Specify the number of lines per screenful. The number
argument is a positive decimal integer. The -n
option
shall override any values obtained from any other
source.
-p
command
Each time a screen from a new file is displayed or
redisplayed (including as a result of more commands;
for example, :p
), execute the more command(s) in the
command arguments in the order specified, as if entered
by the user after the first screen has been displayed.
No intermediate results shall be displayed (that is, if
the command is a movement to a screen different from
the normal first screen, only the screen resulting from
the command shall be displayed.) If any of the commands
fail for any reason, an informational message to this
effect shall be written, and no further commands
specified using the -p
option shall be executed for
this file.
-s
Behave as if consecutive empty lines were a single
empty line.
-t
tagstring
Write the screenful of the file containing the tag
named by the tagstring argument. See the ctags(1p)
utility. The tags feature represented by -t
tagstring
and the :t
command is optional. It shall be provided on
any system that also provides a conforming
implementation of ctags; otherwise, the use of -t
produces undefined results.
The filename resulting from the -t
option shall be
logically added as a prefix to the list of command line
files, as if specified by the user. If the tag named by
the tagstring argument is not found, it shall be an
error, and more shall take no further action.
If the tag specifies a line number, the first line of
the display shall contain the beginning of that line.
If the tag specifies a pattern, the first line of the
display shall contain the beginning of the matching
text from the first line of the file that contains that
pattern. If the line does not exist in the file or
matching text is not found, an informational message to
this effect shall be displayed, and more shall display
the default screen as if -t
had not been specified.
If both the -t
tagstring and -p
command options are
given, the -t
tagstring shall be processed first; that
is, the file and starting line for the display shall be
as specified by -t
, and then the -p
more command shall
be executed. If the line (matching text) specified by
the -t
command does not exist (is not found), no -p
more command shall be executed for this file at any
time.
-u
Treat a <backspace> as a printable control character,
displayed as an implementation-defined character
sequence (see the EXTENDED DESCRIPTION section),
suppressing backspacing and the special handling that
produces underlined or standout mode text on some
terminal types. Also, do not ignore a <carriage-
return> at the end of a line.