*AddPrinter()

Adds a printer to the dialog list.

Syntax

*AddPrinter ("Name", "Command", "Command2")

Application

MotionView, HyperView, HyperGraph, TextView, and MediaView.

Inputs

"Name"
The name of the printer.
"Command"
Any legal Unix print command.
"Command2"
A legal Unix print command used to print a Text Edit window in Print Current Window mode.

Context

*BeginDefaults()

Example

*BeginDefaults()	
   *SetAutoSaveInterval(0)	
   *SetDefaultPageLayout(1)	
   *SetDefaultPSFile("data.ps")	
   *AddPrinter("lj2", "lpr -Plj2")	
   *SetDefaultPrinterOrientation(Landscape)	
   *SetDefaultPrintStyle(Color)	
   *SetDefaultPrintRange(Current)	
• • •

Comments

"Command2" is an optional argument used for printing the current TextView window.