ROUTE
Advanced Programmer's Command
ROUTE
devspec1
[TO]
devspec2
ROUTE
devspec1
[TO] filespec [(REWIND)]
ROUTE
devspec1
(NIL)
Routes devspec1 to one of the following:
• another device
(devspec2)
• a disk file (filespec)
• nothing (NIL)
You can use ROUTE to create a device. You can also use ROUTE to
alter the flow of data from one device to another.
If
devspec1 does not already exist, ROUTE creates it.
To see how your devices are routed, use the DEVICE command. To
return the non-system devices to their normal start-up state, use the
RESET and REMOVE commands.
Examples
ROUTE
*PR
*00
routes the printer (*PR) to the video display
(*00).
All data normally
sent to the printer will be displayed on the screen.
ROUTE
*PR
TO
PRINTER/OAT
routes the printer (*PR) to a disk file (PRINTER/OAT). All data
normally sent to the printer will be stored
in
a disk file named
PRINTER/OAT.
If
PRINTER/OAT already exists, the data is appended
to the end of the file.
RESET
*PR
closes the PRINTER/OAT file and any subsequent output to
*PR
goes to the printer. The PRINTER/OAT remains open until you
execute the above command.
~OUTE
*PR
TO
PRINTER/OAT
(REWIND)
routes the printer to PRINTER/OAT.
If
PRINTER/OAT already exists,
the system "rewinds" the file to the beginning. The contents of the file
will be replaced with the new printer data.
ROUTE
*PR
(NIL>
routes
*PR
to NIL. TRSDOS ignores all output to the printer.
ROUTE
*DU
TO
TEST
/nn:
1
routes a user device (*DU) to a disk file named TEST/TXT
in
Drive
1.
1-108