SUMMARY: remote printing (vt100-style) through Xterm or other terminal interface

From: Joel L. Seber - Sun Workstation Lab Manager (JLS2013@tntech.edu)
Date: Fri May 10 1996 - 17:39:46 CDT


Well, it took LOTS longer than I ever would have thought, but here is a
summary I have owed the list for a long time. I hadn't sent anything before
because I didn't have the solution; I hope this still helps some of you.

My original query:

>System: Sparc Classic, 16MB RAM, SUNOS 4.1.3_U1, OpenWindows 3.0 w/patches
>
>A bit of background: most DEC VT100 terminal emulators honor the ESC [ 5i
>sequence which routes screen output to a printer port. I realize that
>'xterm' as delivered with OW3 does not support this. I also realize you
>can display the remote file, mark it with the mouse, and send it to the
>printer of your choice with 'xv_get_sel'; this is fine for short files,
>but longer ones don't lend themselves to this method. Does anyone know of a
>program or solution (preferably public domain) such that printing a remote
>file thru an emulator may be accomplished? A different VT100 emulator would
>be an acceptable solution, or a patch to 'xterm' if anyone has done it would
>work for me.
>
>I will summarize.

... and here it is:

The program is rxvt version 2.16 (and patch 1, get them both), available from
ftp.linux.org:/pub/mirrors/tsx-11/sources/usr.bin.X11/rxvt-2.16.tar.gz and
rxvt-2.16-patch1.gz .

Some changes have to be made; the current maintainer helped work me through
the following, which he is going to include in a subsequent release:

o run ./configure as usual and change the following in the resultant
config.h file in the appropriate places, disabling anything else there:

#define STDC_HEADERS 1
#undef HAVE_SYS_IOCTL_H

We don't know why, but my gcc headers just didn't work correctly during the
compile...

o modify src/command.c around line 1677 or so to read

    return fclose (stream);

       instead of

    return pclose (stream);

o follow all the other instructions as stated, and you should end up with a
working rxvt, complete with remote print capability!

Thanks so much to all who replied to my original query, and to the current
maintainer of rxvt, Mark Olesen (olesen@me.QueensU.CA) for his invaluable
help.

Cheers, everyone,

Joel L. Seber | Dry humor is wasted around here.
Sun Workstation Laboratory Manager | -Joel L. Seber
Center for Manufacturing Research |
      and Technology Utilization | recursive, adj.
Tennessee Technological University | See 'recursive'
Box 5077 Brown Hall |
Cookeville, TN 38505 | What if there were no hypothetical
jls2013@tntech.edu | situations? -Steven Wright
more info: |
   finger jls2013@gemini.tntech.edu | Who, me? -Alfred E. Newman
                                        |
                                        | "It is bad luck to be superstitious."
                                        | -- Andrew W. Mathis

Status: RO



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:10:59 CDT