Using The Printer As A Pascal File; Interface Commands In Pascal; Screen Dumps; Using The Printer Withcp/M - Epson 8133 User Manual

New apple ii intelligent parallel interface
Table of Contents

Advertisement

USING THE PRINTER AS A PASCAL FILE
11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
The process of printing from a PASCAL program is different from
BASIC: you have to direct each item of data to be sent to the printer
specifically to that device. The printer then becomes an output file.
First it is necessary to declare an internal identifier for the printer file,
making its type either TEXT or INTERACTIVE. Open the file using
REWRITE, supplying the name PRINTER:, and then either WRITE or
WRITELN statements can be used to carry out the printing. The
following short program will accept input from the keyboard and print
it on the printer:
PROGRAM PATOUT;
VAR
EPSON
: INTERACTIVE;
WORDS
: STRING;
BEGIN
READLN(WORDS);
REWRITE(EPSON, 'PRINTER:');
WRITELN(EPSON, WORDS, 'WAS THE TEXT YOU INPUT.');
END.
Since the printer is not a block-structured device, you cannot use
BLOCKWRITE. You can, however, use UNITWRITE - consult the
APPLE PASCAL LANGUAGE REFERENCE MANUAL for the full
details of its use.
Remember that, if you are using WRITE instead of WRITELN, no
carriage return is sent to the printer. You will not see any text printed
by the printer until either the printer's buffer is full or a carriage return
is sent to empty it. Thus you should ensure at the end of your program
that either a carriage return is sent as the last character, or that a
WRITELN statement is used.
INTERFACE COMMANDS IN PASCAL
11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
Using the commands in PASCAL is the same as described in the
rest of the manual, except that <CTRL>-Y is used instead of <CTRL>-1.
62
SCREEN DUMPS
l l lllllllllllillllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll\111111111111111111
Both text and graphics screen dumps can be performed in the usual
way using the <CTRL>-Y nS and <CTRL>-Y G commands respectively.
1,111111111111111111111111111111111111111
USING THE PRINTER
1111111111111111111111111111111111111111
WITHCP/M
As with PASCAL, using the #8133 interface with CP/M is slightly
different from using it with BASIC. The interface should go into
slot # I. The normal way to direct output to the printer is to use
<CTRL>-P as a toggle. The CP/M documentation gives full details, as
does the documentation for any applications programs.
If you are using MBASIC or GBASIC, the commands are used as
described in the rest of the manual. You do not have to use the PR# 1
command to direct output to the printer. Use the LPRINT and LLIST
commands instead.
Commands should start with <CTRL>-Y instead of <CTRL>-1,
including those for dumping graphics screens.
63

Advertisement

Table of Contents
loading

Table of Contents