HP Pascal/iX Reference Manual (31502-90022)

10- 11
perform both input and output, we call open:
overprint
Usage
overprint
(f)
overprint
(f, e)
overprint
(f, e1, ..., en)
overprint
overprint
(e)
overprint
(e1, ..., en)
Parameters
f
A textfile variable that must be opened. If
f
is omitted, the
system uses the standard file
output
.
e
An expression of simple, string, or PAC type, or a string literal.
The system writes the value of
e
on
f
according to the formatting
conventions described for the procedure
write
.
Description
The procedure overprint has the same function as writeln, except that it
does not terminate the line with a line feed. This causes the next write
or overprint to overlay the line written by the original overprint.
Several successive overprints all write to the same line, and printing
advances to the next line after the first writeln.
NOTE Some printers do not support the overprint procedure. Refer to the
manual for your particular printer.
After the execution of overprint
(f)
, the buffer variable
f
^ is undefined
and eoln
(f)
is false. The expression parameter,
e
, behaves exactly like
the equivalent parameter for the procedure write.
If the output device is not a printer, overprint will be ignored.
Examples
overprint(file_var)
overprint(file_var,exp)
overprint(file_var,exp1,...,expn)
overprint(exp)
overprint(exp1,...,expn)
overprint
or
writeln('def');
overprint('___');
def