MPE/iX Intrinsics Reference Manual (32650-90875)
144 Chapter5
Command Definitions (FCONTROL - FLOCK)
FDEVICECONTROL
FDEVICECONTROL
NM and CM callable.
Provides control operations to a printer, terminal, or a spooled device file and is used to:
• Download character sets, forms, and internal or control tables used in printing.
• Control the page size, pen positioning, form and use of character sets, the number of
copies to be printed, and all other printing environment characteristics.
• Perform control operations on a terminal, printer, or spooled device file.
Syntax
I16V UDS I16V I16V
FDEVICECONTROL(
filenum,buffer,length,controlcode
U16V U16V U16
parm1,parm2,fserrorcode
);
Parameters
filenum
16-bit signed integer by value (required)
Passes the file number of the device file.
buffer
user-defined structure (required)
Passes and returns device information:
• Passes information to the device, such as character sets, forms, vertical
format control (VFC) information, or device control actions.
• Returns device driver information.
(ASC) The
buffer
is usually a 16-bit integer by reference or, for
controlcode
=192, where parm=1,
buffer
is a character array containing
the name of the terminal type or printer type file. For
controlcode
=192,
buffer
values are defined in the
parm1
discussion.
length
16-bit signed integer by value (required)
Passes the length of
buffer
:
• If positive, it indicates the length in half words.
• If negative, it indicates the length in bytes.
(ASC) If
controlcode
=192,
length
is normally set to 1 unless
parm1
is set
to 1 (specifying a new terminal or printer type file), then the length of the
array is specified in the
length
parameter.
controlcode
16-bit signed integer by value (required)
Passes the item value to be returned. (See following control codes 128+.)