Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ more(1) — AIX PS/2 1.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

csh

mail, Mail

sh, Rsh



MORE, PAGE(1,C)             AIX Commands Reference              MORE, PAGE(1,C)



-------------------------------------------------------------------------------
more, page



PURPOSE

Acts as the perusal filter for screen viewing.

SYNTAX


 one of
+------+   +-----------------+
| more |---| +-------------+ |--- filename ---|
| page |   +-| -c       -n |-+ ^            |
+------+    ^| -d       -p ||  +------------+
            || -f       -s ||
            || -l       -u ||
            || +linenumber ||
            || +/pattern   ||
            |+-------------+|
            +---------------+


DESCRIPTION

The more command is a filter that allows examination of a continuous text, one
screen at a time.  The program normally pauses after each screen and displays
the word "more" at the bottom of the screen.  If the user then types a carriage
return, one more line is displayed.  Pressing the space bar displays another
screen of information.

If the program is invoked as page, the screen is cleared before each screen is
printed (but only if a full screen is being printed), and k-1 rather than k-2
lines are printed in each screen, where k is the number of lines the terminal
can display.

The more command looks in the file /etc/termcap to determine terminal
characteristics and to determine the default window size.  On a terminal
capable of displaying 24 lines, the default window size is 22 lines.

The more command looks in the environment variable MORE to pre-set any flags
desired.  For example, if you prefer to view files using the -c mode of
operation, the csh command setenv more -c or the sh command sequence more='-c';
export more causes all invocations of the more command including invocations by
such programs as man to use this mode.  Normally, the user places the command
sequence which sets up the MORE environment variable in the cshrc or .profile
file.






Processed November 8, 1990      MORE, PAGE(1,C)                               1





MORE, PAGE(1,C)             AIX Commands Reference              MORE, PAGE(1,C)



If the more command is reading from a file, rather than a pipe, a percentage is
displayed along with the "--More" prompt.  This gives the fraction of the file
(in characters, not lines) that has been read so far.

FLAGS

-n      Determines the size (in lines) of the window, where -n is an integer.

-c      Draws each page by beginning at the top of the screen by erasing each
        line just before the more command draws on it.  This avoids scrolling
        the screen and makes it easier to read while the command is writing.
        This option is ignored if the terminal does not have the ability to
        clear to the end of a line.

-d      Prints messages for novice users.

-f      Causes more to count logical lines rather than screen lines.  That is,
        long lines are not folded.  This option is useful if nroff output is
        being piped through ul since ul may generate escape sequences.  These
        escape sequences contain characters which would ordinarily occupy
        screen positions but do not print.  Thus, more may think that lines are
        longer than they actually are and fold line erroneously.

-l      Ignores a form feed (ctrl-L); that is, more does not pause after any
        line that contains a Ctrl-L and does not clear the screen if a file
        begins with a Ctrl-L.

-p      Clear the screen before displaying a new screen.

-s      Removes multiple blank lines from the output, producing only one blank
        line.  This options is useful when viewing nroff output, maximizing the
        amount of useful information that can be viewed on the screen.

-u      Normally, more handles underlining produced by nroff in a manner
        appropriate to the particular terminal.  If the terminal can perform
        underlining or has a stand-out mode, more outputs the appropriate
        escape sequences to enable underlining or stand-out mode for underlined
        information in the source file.  The -u option suppresses this
        processing.

+linenumber
        Starts up at linenumber.

+/pattern
        Starts up two lines before the line containing the regular expression
        pattern.

Other sequences which may be typed when More pauses, and their effects, follow
(i is an optional integer argument, defaulting to 1 (the numeral 1)):






Processed November 8, 1990      MORE, PAGE(1,C)                               2





MORE, PAGE(1,C)             AIX Commands Reference              MORE, PAGE(1,C)



i<space>
        Displays i more lines (or another screen if no argument is given).  If
        stty speed is set to less than 1200 baud, you must follow i<space> with
        a <CR> (carriage return).

Ctrl-B  Scrolls backward one screen.

b       Scrolls backward one screen.  Same as Ctrl-B.

Ctrl-D  Displays 11 more lines (a "scroll").  If i is given, the scroll size is
        set to i.

d       Same as Ctrl-D.

i z     Same as typing a space except that i, if present, becomes the new
        window size.

i s     Skips i lines and prints a screenful of lines.

i f     Skips i screenfuls and prints a screenful of lines.

q or Q  Exits from more.

=       Displays the current line number.

v       Starts up the editor vi at the current line.

h       Help commands; gives a description of all the more commands.

i/expr  Searches for the i-th occurrence of the regular expression expr.  If
        there are less than i occurrences of expr and the output is a file
        (rather than a pipe), the position in the file remains unchanged.
        Otherwise, a screenful is displayed, starting two lines before the
        place where the expression is found.  The user's erase and kill
        characters may be used to edit the regular expression.  Erasing back
        past the first column cancels the search command.

in      Searches for the i-th occurrence of the last regular expression
        entered.

Ctrl-L  Redraws the screen.

'       (Single quote.)  Goes to the point from which the last search started.
        If no search has been performed in the current file, this command goes
        back to the beginning of the file.

!command
        Invokes a shell with command.  The characters "%" and "!" in command
        are replaced with the current file name and the previous shell command,
        respectively.  If there is no current file name, "%" is not expanded.
        The sequences "\%" and "\!" are replaced by "%" and "!", respectively.




Processed November 8, 1990      MORE, PAGE(1,C)                               3





MORE, PAGE(1,C)             AIX Commands Reference              MORE, PAGE(1,C)



i:n     Skips to the i-th next file given in the command line (skips to the
        last file as n does not make sense).

i:p     Skips to the i-th previous file given in the command line.  If this
        command is given in the middle of printing out a file, more goes back
        to the beginning of the file.  If i doesn't make sense, more skips back
        to the first file.  If more is not reading from a file, the bell rings
        and nothing else happens.

:f      Displays the current file name and line number.

:q or :Q
        Exits from more (same as q or Q).

.       (dot) Repeats the previous command.

The commands take effect immediately.  For example, it is not necessary to type
a carriage return.  Up to the time when the command character itself is given,
the user may enter the line kill character to cancel the numerical argument
being formed.  In addition, the user may enter the erase character to redisplay
the "--More--(xx%)" message.

At any time when output is being sent to the terminal, the user can press the
quit key (normally Ctrl-\).  The more command stops sending output and displays
the usual "--More--" prompt.  The user may then enter one of the above commands
in the normal manner.  Unfortunately, some output is lost when this is done,
because any characters waiting in the terminal's output queue are flushed when
the quit signal occurs.

The terminal is set to noecho mode by this program so that the output can be
continuous.  What you type, therefore, does not show on the terminal, except
for the / and ! commands.

If the standard output is not a teletype, more acts just like cat, except that
a header is printed before each file (if there is more than one).

EXAMPLE

A sample usage of more in previewing nroff output is:

  nroff -ms -s+2 doc.n|more

FILES

/usr/lib/terminfo/*
                  Terminal information files
/usr/lib/more.help
                  Help file.

RELATED INFORMATION

See the following commands:  "csh,"  "mail, Mail," and  "sh, Rsh."



Processed November 8, 1990      MORE, PAGE(1,C)                               4



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026