gxditview(1)
๐ NAME ๐
gxditview โ display troff output in X11.
yep that's it, that's the whole job, and it does it flawlessly โจ (this is the gxditview(1) page from the General Commands Manual, just so you know where we're at ๐)
๐ธ SYNOPSIS ๐ธ
gxditview [X-toolkit-option ...] [-backingStore backing-store-type]
[-filename file] [-page page-number] [-printCommand command]
[-resolution resolution] file
gxditview -help
gxditview --help
gxditview -v
gxditview -version
gxditview --version
๐ฆ DESCRIPTION ๐ฆ
okay so real talk: gxditview renders the output of GNU troff onto an X11 display. It uses the standard X11 fonts, and those fonts are rendered by the X server. main character energy only ๐
The output of troff(1) is in a page description language documented in groff_out(5). Normally you never even see this stuff, because the groff(1) wrapper automatically runs an output driver to interpret it for you. But groff's -Z option leaves it sitting right there on the standard output stream instead. You can view it by explicitly calling gxditview file. If the file operand is -, gxditview will read the standard input stream โ and no, file cannot be omitted, bestie, it's not optional ๐
GNU troff's page description language is device-independent but not device-agnostic. gxditview can view it for all typesetter devices, but the quality is device-dependent. And it will not display output for terminal (nroff) devices. not it ๐
The best results are achieved with the X* devices for troff's -T option, of which there are four: -TX75, -TX75-12, -TX100, and -TX100-12. They differ by the X resolution (75 or 100 dots per inch) and the base point size (10 or 12 points). They are especially built for gxditview. When using one of these, troff generates output for this device and calls gxditview automatically for viewing. slay ๐ฅ
-X produces good results only with -Tps, -TX75, -TX75-12, -TX100, and -TX100-12. The default resolution for previewing -Tps output is 75dpi; this can be changed with the -resolution option.
While gxditview is running, the left mouse button brings up a menu with several entries:
- Next Page โ Display the next page.
- Previous Page โ Display the previous page.
- Select Page โ Collect a page number from a dialog box and render it.
- Print โ Collect a command from a dialog box and use it to print troff output. The default command initially displayed is controlled by the
printCommandapplication resource, and by the-printCommandoption. - Open โ Collect a file name from a dialog box and render it. The named file should contain troff output. If the file name starts with a bar or pipe symbol,
|, it will be interpreted as a command from which to read. - Quit โ Exit from
gxditview.
The menu entries correspond to actions with similar but not identical names, which can also be accessed with keyboard accelerators. Here's the whole keymap, no gatekeeping ๐ซถ
n,Space,Return, andNext(PgDn) keys are bound to theNextPageaction.p,b,BackSpace,Delete, andPrior(PgUp) keys are bound to thePreviousPageaction.- The
pkey with any modifier (Shift, Control, Alt, or Meta) is bound to thePrintaction. - The
gkey is bound to theSelectPageaction. - The
okey is bound to theOpenFileaction. - The
qkey is bound to theQuitaction. - The
rkey is bound to aRerasterizeaction which rereads the current file, and redisplays the current page; if the current file is a command, the command will be re-executed. - Vertical scrolling can be done with the
kandjkeys; horizontal scrolling is bound to thehandlkeys. - The arrow keys (up, down, left, and right) are also bound to the obvious scrolling actions.
The paperlength and paperwidth commands in the DESC file describing a groff output device specify the length and width in basic units of the virtual page displayed by gxditview; see groff_font(5).
๐ X defaults ๐
This program uses the Dvi widget from the X Toolkit. It understands all of the core resource names and classes, plus these:
width(classWidth) โ Specifies the width of the window.height(classHeight) โ Specifies the height of the window.foreground(classForeground) โ Specifies the default foreground color.font(classFont) โ Specifies the font to be used for error messages.fontMap(classFontMap) โ Specifies the mapping from groff font names to X font names. This must be a string containing a sequence of lines. Each line contains two whitespace-separated fields: the groff font name is first, and the XLFD (X Logical Font Description) second. The default is shown in subsection โDefault font mapโ below.
๐ค Default font map ๐ค
XLFDs are long and unwieldy, so some lines are shown broken and indented below.
TR -adobe-times-medium-r-normal--*-100-*-*-*-*-iso8859-1\n\
TI -adobe-times-medium-i-normal--*-100-*-*-*-*-iso8859-1\n\
TB -adobe-times-bold-r-normal--*-100-*-*-*-*-iso8859-1\n\
TBI -adobe-times-bold-i-normal--*-100-*-*-*-*-iso8859-1\n\
CR -adobe-courier-medium-r-normal--*-100
-*-*-*-*-iso8859-1\n\
CI -adobe-courier-medium-o-normal
--*-100-*-*-*-*-iso8859-1\n\
CB -adobe-courier-bold-r-normal--*-100-*-*-*-*-iso8859-1\n\
CBI -adobe-courier-bold-o-normal--*-100-*-*-*-*-iso8859-1\n\
HR -adobe-helvetica-medium-r-normal
--*-100-*-*-*-*-iso8859-1\n\
HI -adobe-helvetica-medium-o-normal
--*-100-*-*-*-*-iso8859-1\n\
HB -adobe-helvetica-bold-r-normal
--*-100-*-*-*-*-iso8859-1\n\
HBI -adobe-helvetica-bold-o-normal
--*-100-*-*-*-*-iso8859-1\n\
NR -adobe-new century schoolbook-medium-r-normal--*-100
-*-*-*-*-iso8859-1\n\
NI -adobe-new century schoolbook-medium-i-normal--*-100
-*-*-*-*-iso8859-1\n\
NB -adobe-new century schoolbook-bold-r-normal--*-100
-*-*-*-*-iso8859-1\n\
NBI -adobe-new century schoolbook-bold-i-normal--*-100
-*-*-*-*-iso8859-1\n\
S -adobe-symbol-medium-r-normal--*-100
-*-*-*-*-adobe-fontspecific\n\
SS -adobe-symbol-medium-r-normal--*-100
-*-*-*-*-adobe-fontspecific\n\
โจ OPTIONS โจ
-help and --help display a usage message, while -v, -version, and --version show version information; all exit afterward. so you get your answer and then it dips ๐
gxditview accepts all of the standard X Toolkit command-line options along with the additional options listed below.
-pageโ This option specifies the page number of the document to be displayed.-backingStorebacking-store-type โ Because redisplay of the rendered troff output can take a perceptible amount of time, 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 ofAlways,WhenMappedorNotUseful.-printCommandcommand โ The default command displayed in the dialog box for thePrintmenu entry will be command.-resolutionres โ troff output file will be displayed at a resolution of res dots per inch, unless theDESCfile contains theX11directive, in which case the device resolution will be used. This corresponds to theDviwidget'sresolutionresource. The default is75.-filenamestring โ The default file name displayed in the dialog box for theOpenmenu entry will be string. This can be either a file name, or a command starting with|.
The following standard X Toolkit command-line arguments are commonly used with gxditview.
-bgcolor โ This option specifies the color to use for the background of the window. The default iswhite.-bdcolor โ This option specifies the color to use for the border of the window. The default isblack.-bwnumber โ This option specifies the width in pixels of the border surrounding the window.-fgcolor โ This option specifies the color to use for displaying text. The default isblack.-fnfont โ This option specifies the font to be used for displaying widget text. The default isfixed.-rvโ This option indicates that reverse video should be simulated by swapping the foreground and background colors.-geometrygeometry โ This option specifies the preferred size and position of the window.-displayhost:display โ This option specifies the X server to contact.-xrmresourcestring โ This option specifies a resource string to be used.
๐ซ EXIT STATUS ๐ซ
gxditview exits with status 0 on successful operation, and status 2 if the program cannot interpret its command-line arguments.
๐ ENVIRONMENT ๐
GROFF_FONT_PATHโ A list of directories in which to seek the selected output device's directory of device and font description files. Seetroff(1)andgroff_font(5).
๐ FILES ๐
/usr/lib/X11/app-defaults/GXditview/usr/lib/X11/app-defaults/GXditview-color
define X application defaults for gxditview. Users can override these values in the .Xdefaults file, normally located in the user's home directory. See appres(1) and xrdb(1).
/usr/share/groff/1.24.2/font/devX100/DESCโ describes theX100output device./usr/share/groff/1.24.2/font/devX100/Fโ describes the font known asFon deviceX100./usr/share/groff/1.24.2/font/devX100-12/DESCโ describes theX100-12output device./usr/share/groff/1.24.2/font/devX100-12/Fโ describes the font known asFon deviceX100-12./usr/share/groff/1.24.2/font/devX75/DESCโ describes theX75output device./usr/share/groff/1.24.2/font/devX75/Fโ describes the font known asFon deviceX75./usr/share/groff/1.24.2/font/devX75-12/DESCโ describes theX75-12output device./usr/share/groff/1.24.2/font/devX75-12/Fโ describes the font known asFon deviceX75-12./usr/share/groff/1.24.2/tmac/X.tmacโ defines macros for use with theX100,X100-12,X75, andX75-12output devices. It is automatically loaded bytroffrcwhen any of those output devices is selected./usr/share/groff/1.24.2/tmac/Xps.tmacโ sets up troff to usegxditviewas a previewer for device-independent output targeting thepsoutput device. It is automatically loaded bytroffrcwhen troff is given the options-Xand-Tps.
๐ง EXAMPLES ๐ง
The following command views this man page with a base point size of 12.
groff -TX100-12 -man gxditview.1
The quality of the result depends mainly on the chosen point size and display resolution; for rapid previewing, however, something like
groff -X -P-resolution -P100 document
yields acceptable results.
๐ AUTHORS ๐
Okay so gxditview didn't just appear out of the void, bestie โ it has a whole lineage, a whole family tree, a whole squad ๐. And the icon who built it, gxditview, plus its predecessor xditview, were written by this absolutely stacked cast:
- Keith Packard (MIT X Consortium) ๐
- Richard L. Hyde (Purdue) โจ
- David Slattengren (Berkeley) ๐ฆ
- Malcolm Slaney (Schlumberger Palo Alto Research) ๐ธ
- Mark Moraes (University of Toronto) ๐
- James Clark ๐
Not them building the whole thing on top of a whole other thing, generations deep ๐ญ. This program is derived from xditview; and portions of xditview originated in xtroff, which was itself derived from suntroff. It's giving ancestry.com but for display programs, fr fr. ๐
๐ SEE ALSO ๐
If you wanna go deeper (and you know you do ๐), here's the reading list:
- โX Logical Font Description Conventionsโ, by Jim Flowers and Stephen Gildea. ๐
X(7)xrdb(1)xditview(1)groff(1)groff_out(5)
And that's the whole page, bestie ๐ซถ no cap, you now know gxditview better than it knows itself.
This was groff 1.24.2, dated 2026-10-04, living under the name gxditview(1) โญ โ periodt. ๐
๐ฆ where this page comes from
- arch rolling: groff 1.24.2-1 ยท GPL-3.0-or-later
- Copyright 1991 Massachusetts Institute of Technology
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms