Command: print

Syntax

print {<file>,... }

Description

Print the contents of a text file, or window.

Parameters

Switches

Windows ONLY

The following switches are available for the interactive printing of window contents (Windows Operating System only). When used, all previously described switches are ignored.

Notes

When a dialogue is invoked, the system numeric found is set to 1 when the user closes the dialogue successfully, or 0 when the user cancels the dialogue.

This command is very similar to the type command, but the default destination is the printer rather than the monitor.

Text index files, to be used with the -key switch above, are created via the makefhx utility program.

On Windows systems, the window which currently has focus may be printed by typing Control P in the window. This will invoke the print dialogue.

The position of the print (or print setup) dialog window is determined by the value of menu_position.

Examples

Send one file to the printer.

print a.cmd

Send 2 files to the printer with header and line numbers. Print two copies of each.

print file1.dat,file2.dat,-n,-h,-x=2

On Windows, display a print dialog to control the printing of a graphic window (mywin).

print -dia,-iw=mywin,-bit=8,-syn

See Also

Commands:

formfeed, tell, type

Identifiers:

found (numeric), printer (string), print_length (numeric), print_margin (numeric), print_orientation (string), print_paper_size (numeric), print_width (numeric), sys_control_p (numeric)

Utilities:

makefhx