CoCoA:More

From ApCoCoAWiki
Revision as of 10:02, 24 October 2007 by XMLBot (talk | contribs) (pushing XML rev. 1.46, again)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

More

print a string, N lines at a time

Description

The purpose of this function is to print the string S without

scrolling off of the screen.

The first form of this function stores the string S in a MoreDevice,

then prints the first N lines from the MoreDevice where N is the

integer stored in the global variable MEMORY.MoreCount. Subsequent calls to More print the next N lines from the MoreDevice, (each time removing the lines from the device) until the MoreDevice is empty. After each call to More a line with More(); is printed as long as the MoreDevice is not empty. This line is easily cut-and-pasted.

The user may set the number of lines to print with the command

MEMORY.MoreCount := X, where X is an integer. The default is value

is 20.

If E is *any* CoCoA object, the command Sprint(E) converts E into a

string. The output may then be given to More for printing.

To use the more device with the online help system, see

<ttref>H.SetMore</ttref>, <ttref>H.UnSetMore</ttref>.

Syntax

More(S:STRING):NULL
More():NULL

H.UnSetMore

H.SetMore

Commands and Functions for Strings

   <type>io</type>
   <type>printing</type>
   <type>string</type>
   <type>system</type>