Amiga Unix — 68040 · 68060

Manual pages › Extra programs: news, mail, languages, tools (1L)

gxditview(1L)

display gtroff output files

From the original Amiga UNIX 2.1 manual. Some things it mentions may not be in this release.

gxditview - display gtroff output files

gxditview [-toolkitoption ...] [-option ...] [filename]

The gxditview program displays gtroff output on an X display. It uses the standard X11 fonts, so it does not require access to the server machine for font loading.

If filename is -, gxditview will read the standard input.

The left mouse button brings up a menu with the following entries:

Display the next page.
Display the previous page.
Select a particular numbered page specified by a dialog box.
Print the gtroff output using a command specified by a dialog box. The default command initially displayed is controlled by the printCommand application resource, and by the -printCommand option.
Open for display a new file specified by a dialog box. The file should contain gtroff output. If the filename starts with | it will be taken to be a command to read from.
Exit from gxditview.

The paperlength and paperwidth commands in the DESC file specify the length and width in machine units of the virtual page displayed by gxditview.

Gxditview accepts all of the standard X Toolkit command line options along with the additional options listed below:

This option indicates that a brief summary of the allowed options should be printed.
This option specifies the page number of the document to be displayed.
Redisplay of the gtroff output window can take upto a second or so, this option causes the server to save the window contents so that when it is scrolled around the viewport, the window is painted from contents saved in backing store. backing-store-type can be one of Always, WhenMapped or NotUseful.
The default command displayed in the dialog box for the Print menu entry will be command.
The gtroff output file will be displayed at a resolution of res dpi, unless the DESC file contains the X11 command, in which case the device resolution will be used. This corresponds the Dvi widget's resolution resource. The default is 75.

The following standard X Toolkit command line arguments are commonly used with gxditview:

This option specifies the color to use for the background of the window. The default is white.
This option specifies the color to use for the border of the window. The default is black.
This option specifies the width in pixels of the border surrounding the window.
This option specifies the color to use for displaying text. The default is black.
This option specifies the font to be used for displaying widget text. The default is fixed.
This option indicates that reverse video should be simulated by swapping the foreground and background colors.
This option specifies the preferred size and position of the window.
This option specifies the X server to contact.
This option specifies a resource string to be used.

This program uses the Dvi widget in the X Toolkit. It understands all of the core resource names and classes as well as:

Specifies the width of the window.
Specifies the height of the window.
Specifies the default foreground color.
Specifies the font to be used for error messages.

X(1), xrdb(1), gtroff(1), groff(1)

This program is derived from xditview; portions of xditview originated in xtroff which was derived from suntroff.

Copyright 1989, Massachusetts Institute of Technology.
See X(1) for a full statement of rights and permissions.

Keith Packard (MIT X Consortium)
Richard L. Hyde (Purdue)
David Slattengren (Berkeley)
Malcom Slaney (Schlumberger Palo Alto Research)
Mark Moraes (University of Toronto)
James Clark

Release 4 X Version 11