Using the following sequence of commands, we were able to set and restore
timeout defaults using both batch and interactive modes. Line numbers are for
reference in this article only, and are not required by the printer.
1 serverdict begin 0 exitserver
2 /helvtica findfont
3 15 scalefont
4 setfont
5 72 700 moveto
6 /str 20 string def
7 %statusdict begin 0 60 30 setdefaulttimeouts
8 statusdict begin defaulttimeouts str cvs show
9 str cvs show
10 str cvs show
11 showpage
What may be confusing in interactive mode is that after typing line 1 the "PS>"
prompt is no longer displayed and the printer stops echoing keystrokes to the
user. Type line 2 to prove that commands are still accepted by the printer.
It returns a notice that it can't find "helvtica" and is substituting courier.
Turning local echo on after line 1 will eliminate blind typing.
Commenting out line 7 lets the user power-cycle the printer to see that the
changes are permanent. Lines 8, 9, and 10 pop values returned by
defaulttimeouts off the stack in the order wait, manual feed, job.
Information on setdefaulttimeouts and defaulttimeouts is available on page 300
of the "PostScript Language: Reference Manual" from Addison-Wesley (ISBN #
0-201-10174-2).