This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: xterm and right click and 'print window'
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: "J. David Boyd" <dave at adboyd dot com>
- Cc: cygwin-xfree at cygwin dot com
- Date: Wed, 8 Jun 2005 17:50:48 -0400 (EDT)
- Subject: Re: xterm and right click and 'print window'
- References: <Xns966FA4E1E9FCDdaveadboyd@80.91.229.5>
- Reply-to: cygwin-xfree at cygwin dot com
- Reply-to: cygwin-xfree at cygwin dot com
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