[comp.windows.x] xwd and xpr under twm

gaspo@VSSERV.SCRI.FSU.EDU (Scott Gasparian) (08/29/90)

Greetings!!

   Here's a problem that may or may not be easy to make easier. (no,
that was on purpose).

   Info:  80286@12mhz at clone running GSS's PCXview/16
          Most clients (incl twm) running on a DEC5000 (Ultrix4.0r174)

   Everythihng runs great, except for printing windows.  I mean, I
*can* print.  It's just that I'm using the line:


"xwd -xy -display $DISPLAY -add 8 | xpr -rv -device ps | lpr -h-Pxxx &"

   to print from the window titlebar menu. It works great, except for,
most of my xterms (which get the most printing) are all using different
color schemes.  Most are light on dark, but one or two are'nt.  In
order to print different xterms, I have to change the add value to
xwd. (i.e., 8 works fine on the xterm I'm using now, but just gives
the window outline on another, and 13 works good on the inverse). Is
there an easy way to determine what value to give xwd to provide the
right contrast to xpr?  Or is there an even easier way?  
   Needless to say, it gets to be a PITA re-starting twm to change
the values every time I print a different window.

   Any ideas? Any suggestions? Any comments?  Anyone care for a mint?

/----------------------------------------------------------------------------\
| Scott "gaspo" Gasparian - Teenage Mutant Ninja Technician |    "back user!"|
| Supercomputer Computations Research Institute             |\   ,_      _/\ |
| 400 SCL, F.S.U., Tallahassee, FL 32306-4052               |/ _/ '__       \|
| gaspo@vsserv.scri.fsu.edu  | "I do NOT do lunch, I do NOT ||/  / ,,"   __o/|
| gasparian@gw.scri.fsu.edu  | wear 'power ties', and I do  | \_\|_\,     /  |
| (904) 644-4277 / 222-5630  | NOT EVER do COBOL! Get it?!" | /+-+-\    _/\_ |
\----------------------------------------------------------------------------/