more

Name

more -- file perusal filter for crt viewing

Description

more is as specified in the SUS but with differences as listed below.

Differences

The more command need not respect the LINES and COLUMNS environment variables.

-num

specifies an integer which is the screen size (in lines).

-e

has implementation-dependent behavior.

-i

has implementation-dependent behavior.

-n

has implementation-dependent behavior.

-p

Either (1) clear the whole screen and then display the text (instead of the usual scrolling behavior), or (2) provide the behavior specified by the SUS. In the latter case, the syntax is "-p command".

-t

has implementation-dependent behavior.

+num

starts at line number num.

+/string

specifies a string that will be searched for before each file is displayed.

LSB Deprecated Differences

The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.

-d

prompts user with the message "[Press space to continue, 'q' to quit.]" and will display "[Press 'h' for instructions.]" instead of ringing the bell when an illegal key is pressed.

-l

prevents the typical behavior where more treats ^L (form feed) as a special character and pauses after any line that contains a form feed.

-f

counts logical, rather than screen lines (i.e., long lines are not folded).

Rationale

The +num and +/string options are deprecated in the SUSv2; however we must continue to specify them because util-linux-2.11f does not support the SUS replacement (-p command). The SUSv2 +command is more general than what we specify, but util-linux-2.11f appears to only support the more specific +num and +/string forms.