Sometimes there is an unawareness of the flexibility available with the Larken Print Control commands, or maybe we should say, how to make best use of them.
We have found that the best way to handle this matter is to assign the large printer to channel #5. That is to say, use the command PRINT USR 100: OPEN #5,”lp”, to open a channel to the large printer.
With this in place it is possible to direct an output to either the screen, the TS2040 printer, or to a large printer, simply by using the appropriate command in the program. If flexibility to select the output within the program is required then the printer command should incorporate a variable in the command. For example, use the command ‘PRINT # pr’ where the variable pr represents the chosen output. If a screen output is desired then make the variable ‘pr’ equal to 2; for a TS2040 output let ‘pr’ equal 3; for a large printer let ‘pr’ equal 5. Your program would then have a line in it much like this:
200 INPUT "Choose Output screen(2) 2040(3) large(5) Press a key";pr
400 PRINT # pr;"text to be printed"
The following table will make the options more obvious.
PRINT "TEST" comes out on the screen PRINT #2;"test" comes out on the screen PRINT #3;"test" comes out on the TS2040 PRINT #5;"test" comes out on large printer LPRINT "test" comes out on the TS2040 LPRINT #2;"test" comes out on the screen LPRINT #3;"test" comes out on the TS2040 LPRINT #5;"test" comes out on large printer
We have made use of the #5 channel because the channel #4 is reserved for use by the Larken system as optional to the PRINT USR 100 command.