|(One intermediate revision by one other user not shown)|
procedure is used to tell the system to advance to the next page on that system' s output writer. This was generally different from system to system. On IBM mainframes, it meant putting a '1' (the charaqcter of the digit 1) as the first character of the output line. On most ASCII machines, it means generating a form feed character, CHR(12). |+|
The '''page''' the page
' to a of the the the .
| || |
|−|The page() procedure thus provided a machine-independent way to advance output to the next page. |+|
| || |
|−| ''' Page( ''filevar'') ;''' |+|
|−|: where |+|
|−|:: ''filevar'' is the name of an output file, like OUTPUT. |+|
| || |
should not be used on input files or files not previously opened by [[ rewrite]] . |+|
page advances the output of a given textfile by one page.
Page could refer to a piece of paper if the destination is a physical printer, or could imply blanking the entire screen, the specific behavior is implementation-defined.
Page takes one
text file as a parameter.
It determines the destination.
If the destination is
output, it can be omitted.
page; is short for
Provided the destination is open for writing:
- If not at the beginning of a line, do a
- Implementation-defined method of advancing to the next “page”.
- On IBM mainframes, advancing to the next page was achieved by putting a
1, that is the character of the digit 1, in the first column of a line.
- On most machines using ASCII though, it simply means emitting a form feed character, i. e.
chr(12). The FPC and the GNU Pascal Compiler use this method.