xterm and right click and 'print window'

Igor Pechtchanski pechtcha@cs.nyu.edu
Wed Jun 8 21:51:00 GMT 2005


On Wed, 8 Jun 2005, J. David Boyd wrote:

> Has anyone found a way to make this feature work, on any version of
> windows, with any printer?

This works for me.  WinXP, networked printer.  As long as the PRINTER
variable is exported.

> I've had no luck so far, and am grasping for clues.
>
> I've defined my $PRINTER as //quantex2/hplaserj, which prints okay
> from windows, but not cygwin.

Open a regular bash window (no X), and type "echo $PRINTER".  If that
prints the correct thing, try "bash -c 'echo $PRINTER'".  If that works
too, type "xterm -display 127.0.0.1:0", and from that xterm type "echo
$PRINTER".  If you see the correct printer in all 3 cases, the "Print
Window" command should work (it does for me).

Alternatively, since all xterm does is pipe stuff to lpr, does "lpr -P
//quantex2/hplaserj /etc/passwd" print /etc/passwd to that printer (just
to make sure lpr works)?
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT



More information about the Cygwin-xfree mailing list