tcl.startptr Verb: Access/Spooler


Command tcl.startptr Verb: Access/Spooler
Applicable release versions: AP, R83
Category Spooler (24)
Description activates and initializes printers.

Up to fifty printers, although only up to four parallel printers are supported on PC systems. The actual number of printers supported depends on the hardware configuration.

If the status of the printer is active, "startptr" has no effect.
The following parameters can be specified:

"number" is the printer number between 0 and the maximum printer number, which is determined by the actual number of physical ports on the system, plus 4. If no other options are specified, this restarts a "stopped" printer. (See "stopptr").

"queue1, queue2, queue3" are output queue numbers between 0 and 125, inclusive. "queue1" is given first priority for spooling, "queue2" is given second priority, etc. At least one form queue must be specified, but not more than three.

"page.eject" is the number of pages to eject at the end of each print file, and must be between 0 and 9, inclusive. Also see "s" option.

"type/address" is the printer type and port number. The printer type may be "p" for parallel, or "s" for serial printers. The "address" is determined by the type. For serial printers the address references the port number. On a parallel printer, the address is the address of the physical device. In the case of a parallel printer, the printer number and the physical device number should be the same. The system uses the printer number as the device number, but requires the device number for syntax reasons. On AP/Unix implementations, all printers are considered "serial" because of the unique relationship between Unix and Pick.

"a" initiates the alignment process. The system will prompt for the number of lines, and then print a sample alignment. After each trial, it prompts again for either a "y" to try the alignment again, "t" to terminate the alignment process, or "n" to input a different number of alignment lines. During the alignment process the printer is not yet considered attached to the spooler, so it cannot yet receive print jobs.
Syntax startptr number{,queue, page.eject, type/address,{a} {(options)}}
startptr number, (queue1{, queue2{, queue3}}), page.eject, type/address, {a} {(options)}
Options b The serial printer is assigned the line feed and form feed delays of the initiator.

d Enables debugger on the current port. Used primarily by developers to test spooler code.

s Inhibits the initial page-eject command at the start of a print file. Also see the "page.eject" parameter.

x{n} Indicates that the serial printer does not recognize an ASCII form feed character as a page-eject command. The printing process must count lines within the page and send the correct number of blank lines when a page-eject command occurs. "n" indicates the number of lines per page. If the "x" option is specified and there is no numeric specification, the page length defaults to 66 lines.
startptr 0,0,0,p0

This starts printer 0 on form queue 0, skipping 0 pages between jobs, on 
parallel port address 0.

startptr 1,1,0,s12

This starts printer 1 on form queue 1, skipping 0 pages between jobs, on serial 
port 12.

startptr 9,(98,99),1,s19

This starts printer 1 on form queues 98 and 99, skipping 1 page between jobs, 
on serial port 19.

startptr 1,(3,4,5),1,s11

This starts printer 1 on form queues 3, 4 and 5, skipping 1 page between jobs, 
on serial port 11.
Related tcl.sp-status