home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
cpm
/
cug
/
softt-12.lbr
/
PAGE.DQC
/
PAGE.DOC
Wrap
Text File
|
1984-07-05
|
2KB
|
87 lines
.he 'PAGE'05/01/80'PAGE'
NAME
.sp
page - display file on CRT terminal a page at a time
.sp 2
SYNOPSIS
.sp
.nf
subroutine page (fd, prompt, eprompt, lines)
file_des fd
character prompt (ARB), eprompt (ARB)
integer lines
.fi
.sp 2
DESCRIPTION
.sp
'Page' is used to display the contents of a disk file
on a CRT terminal, one screenful at a time.
In addition, it gives the user the ability to review or skip
any part of the file if desired.
.sp
The first argument is the file descriptor of a disk file to
be displayed.
The second argument is a format string (c.f. 'print', 'encode')
to be used for prompting the user after each screen.
If this format string contains a format code for an integer
(e.g. "*i") then the current page number will replace it in
the actual prompt.
The third argument is a format string to be used for prompting
the user when end-of-file is reached;
it may also contain a format code for the current page number.
The final argument is the number of lines on the CRT screen
being used;
if the value 0 is supplied, no pagination will be performed.
.sp
'Page' prompts the user after each screenful of output, then
awaits a command.
The following commands may be entered.
(Note that alphabetic commands may be entered in upper or lower
case.)
.sp
.in +15
.ta 11
.tc \
.ti -10
n\Exit immediately.
.ti -10
q\Exit immediately.
.ti -10
ctrl-c\Exit immediately.
.ti -10
y\Advance to the next page.
.ti -10
newline\Advance to the next page.
.ti -10
l<lines>\Set screen size to specified number of lines.
"l" or "l0" causes paging to end and continuous listing to
begin.
.ti -10
.\Redisplay current page.
.ti -10
^\Redisplay previous page.
.ti -10
<page>\Display specified page number.
.ti -10
+<pages>\Advance given number of pages (default 1).
.ti -10
-<pages>\Back up given number of pages (default 1).
.sp
.in -15
'Page' handles long lines correctly and does
not generate multiple prompts for files whose lengths are
integral multiples of the screen size.
.sp 2
CALLS
.sp
open, getlin, print, ctoi, putlin, rewind, close
.sp 2
BUGS
.sp
There is no easy way to change the page alignment, or to
scan for the first page containing a given pattern.
.sp 2
SEE ALSO
.sp
pg (1)