Specifications
CHAPTER 3
LaserWriter Pro Software
Setting Device Parameters 67
sethardwareiomode 3
setsoftwareiomode 3
setuserdiskpercent 3
softwareiomode 3
Syntax int sethardwareiomode –
Definition This operator opens specified channels for communication and closes
other channels. The variable int specifies which communication
channel(s) should be opened by setting the On and Enabled device
parameters to true. All other channels will be explicitly closed by
setting the On and Enabled parameters to false. The interpretation
of int is as follows:
0 Open %Serial% and %SerialB%. Close all others.
1 Open %Parallel%.Close all others.
2 Open %LocalTalk%. Close all others.
3 Open %Serial and %SerialB%. Close all others.
Errors invalidaccess, rangecheck, stackunderflow, typecheck
Syntax int setsoftwareiomode –
Definition This operator sets the values of the interpreter and, if appropriate, the
Protocol device parameters for the current communications device
parameter set. The meaning of int is as follows:
0 PostScript Normal
1 Not defined
2 Not defined
4 Not defined
5 LaserJet IIP Raw
100 PostScriptBinary
Errors invalidaccess, rangecheck, stackunderflow, typecheck
Syntax int setuserdiskpercent -
Definition This operator pops int off the stack. It is not operative in the
LaserWriter Pro printer.
Error stackunderflow, rangecheck, typecheck
Syntax – softwareiomode int
Definition This operator returns int, which indicates the interpretation mode for
the current communications device. See setsoftwareiomode.
Error stackoverflow










