Commands > LIT Commands

PAGE

Updated September 2008

PAGE <command line>

The PAGE command can be used as a prefix to any other (non-screen-oriented) command to causes its output to be displayed one page at a time (instead of scrolling). It stops after each screen-full of output and waits for any key to proceed. For example:

PAGE DUMP FILE.TXT

This will dump the contents of the file a page at a time. General paging may also be turned on and off by using PAGE /ON and PAGE /OFF.

This command can be very useful when dealing with commands that send lots of information to the screen very quickly, such as TYPE, DIR, DUMP, and COMPIL.

You can terminate the command by entering Q when prompted to proceed to the next page.

PAGE.LIT 1.0(102), in A-Shell build 1125 of 27 Sept 08, adds support for syntax display (PAGE /?), and also checks and adjusts for common mistake of using PAGE <file> to display a file, instead of PAGE TYPE <file>. In other words, if the argument list consists of a single filespec, and that filespec appears to be a text file, it is treated as if the command was PAGE TYPE <file>.

See Also

A-Shell's scrollback feature, which is supported in A-Shell/Windows and ATE.