Looking for software to display troff output to X windows

Looking for software to display troff output to X windows

Post by Lance Hartma » Thu, 01 Aug 1991 22:28:18

I heard somewhere that there might be software (or data file(s) in
"/usr/lib/font"???) so that you could pipe troff output to X windows
which could display the "special" features like bold, italics, drawings,
etc.  Can anyone suggest if this is possible and how to accomplish this?
For "regular", ie. non X displays, we've used "nroff -Tlp | col -b" which
was okay, but would like to take more advantage of the X displays if

Thanks in advance,

DISCLAIMER:  All opinions/actions expressed herein reflect those of my VERY OWN
and shall NOT bear any reflection upon Tandem or anyone else for that matter.


1. Q: Displaying output from system() in a curses window??

Okay, here is the scenario:

We are wrapping a curses interface around some data management routines
that use ftp to retrieve files from non-local file systems.

We have the transfer working as expected, but we have piped any output
from ftp to /dev/null.  Some of the files to be transferred are fairly
large, and we would like to provide feedback to the user about the progress
of the transfer.  Ftp's hash mark printing would be just fine with us
( already implemented ), but because ftp doesn't recognize the curses
windows, it garbages the display.

The question:  Is it possible to somehow force the output from ftp
to stay within the window and still update dynamically.

Redirecting to a file and then reading in from the file loses the
interactive display.

Clearing the screen, making the system call, and then reinitializing the
screen is probably the path of least resistance, but seems aesthetically

Forking a child process with stdout rebound to a pipe back to the parent
would probably work, but none of the programmers involved have
played with this scenario before and we are on a fairly tight time schedule.

It seems to me what we want is a way of lying to the system call about
where the window starts and how large it is, while at the same time creating
a non-scrolling border area on screen.

Hardware: Sun 3's and Sun 4's
OS: SunOS 4.x

Mail me with replies and I'll post a summary to the net.

Thanks in advance.

 Texas Instruments                                   FAX    : (214)575-6198
 PO Box 860305  MS 8408                              PC DROP: PSK2

2. Problems with having 2 IDE drives...

3. How Cron job open Xterm window and display outputs to this xterm?

4. Problems with Trident 9750 video card

5. displaying application output on the root window

6. /dev/sbpcd : Not a block device

7. displaying output of a command in a window

8. Midnight Commander 4.0 Editor Change

9. How to change an X11 app to display identical output to two different DISPLAYs?

10. Sending troff output to a Hewlett-Packard LaserJet III?

11. How to convert the troff output to PostScript format ?

12. Output from troff.

13. X-Windows Display Looks like Shit