_outdev.utl Utility - Select Output Device
Syntax
call "_outdev.utl",device_name$,channel{,output_columns,options$}
Description
The _outdev.utl utility provides a standardized routine for selecting and opening an output device such as a printer, file, or the terminal.
Parameter |
Description |
device_name$ |
Returned as the PRO/5 device or STRING file that was selected. |
channel |
Channel the device was opened on. |
output_columns |
Width of the selected output device, in columns. |
options$ |
"T" Internal TAOS usage. |
|
"P" Don't offer output to file as an option. |
Example
The following prompts for an output device. The selected output device is opened on CHANNEL, and the global (STDOUT) is set to the name of the output device:
CALL BBEXT$+"_outdev.utl",DEVICE$,CHANNEL,OUT_COLS
Search Sequence
(T) Terminal |
(S)tandard Print (C)ompressed Print |
(P) Printer |
Select printer ID (via _prntsel.utl) (S)tandard Print (C)ompressed Print |
(F) File (string) |
Enter file name. |