HDTenEightyP/NetNews huggingface dataset:
From: mitch@mta.com (Mitch Trachtenberg)
Subject: arrowhead-style Athena scrollbar
Organization: Mitch Trachtenberg & Associates
Date: Mon, 23 Nov 92 15:43:27 GMT

  I've developed modifications for the Xaw scrollbar widget
which implement the arrowhead style familiar to users of the 
Macintosh, Windows, Motif, etc.  Donna Converse has been kind
enough to place the modified scrollbar on export, in

	export.lcs.mit.edu:contrib/Xaw.Scrollbar.mta.Z
             
  The start of the README from the file on export follows:

  This directory contains a modified version of the Xaw scrollbar 
widget which implements the arrowhead style familiar to users of
the Macintosh, Windows, Motif, etc...  This version of the Scrollbar 
is a "drop in" replacement for the original; that is, once you rebuild 
your Xaw library with this modified code your applications will pick up 
the new scrollbar style without the application code noticing the switch.  

  (Well, almost.  You should apply the small patch to Xaw/Text.c noted 
at the top of the Scrollbar.c source file.  This patch will not hurt things 
even if you revert to the original Scrollbar.  It simply ensures that 
user clicks in the scrollbar channel scroll by a minimum of one line, 
which seems reasonable, unless your users like to click for the hell of it.)

  The behavior of this version is as follows:  

        * button 1 clicks in the arrows move a "small increment"
          in the direction of the click; these autorepeat
        * button 1 clicks in the channel move a "large increment"
          in the direction of the click; these don't autorepeat
	* motion while button 1 is down has no effect until the
          pointer touches the slider, at which point it "picks
          the slider up"
        * button 2 presses cause the slider to jump to and track 
          the pointer position (as in the original)
        * button 3 mimics button 1


  
-- 
Mitch Trachtenberg  			Mitch Trachtenberg & Associates (MTA)
mitch@mta.com				5 Holyoke Street
(617) 267-0440				Boston, MA 02116
From: taylor@foraker.NoSubdomain.NoDomain (Eric Taylor)
Newsgroups: comp.windows.x
Subject: Re: sizeof(int) == ?
Date: 20 Nov 92 17:37:14 GMT

I do not believe X assumes sizeof(int) == 32.
The implementors use a long when it is appropriate.
Since people do use X on PC's (well maybe),
I can not imagine that any such bugs would go unreported.
Newsgroups: comp.windows.x,news.answers
From: andre@cs.pitt.edu (Andre Srinivasan)
Newsgroups: comp.windows.x
Subject: q: properties as a communication facility
Date: 19 Nov 92 15:36:13 GMT
Distribution: usa
Organization: Univ. of Pittsburgh Computer Science

can someone point me toward both programming information on x11
properties as well as the implementation/architecture of properties
(beyond the o'reilly series)?  

i want to gather enough information to form an opinion about using
properties as a communication facility (as opposed to using sockets,
for example).

please email as i don't read this group very often. thanks.

								-andre.

-- 
Andre Srinivasan  : Disclaimer: 
Neurophysiology   :	If my employer knew that I expressed opinions, not
Children's Hosp.  :	only would they disavow knowledge that I had them,
andre@cs.pitt.edu :	but they would deny that I existed, just in case.
Xref: sparky comp.windows.x:19181 comp.windows.x.apps:1487 comp.graphics:11921
From: ndiaye@sol.cs.uni-sb.de (Alassane Ndiaye)
Newsgroups: comp.windows.x,comp.windows.x.apps,comp.graphics
Subject: HOW TO CONVERT FROM POSTSCRIPT TO GIFF OR PBM ?
Date: 16 Nov 92 10:03:39 GMT
Followup-To: comp.windows.x
Distribution: comp
Organization: University of Saarbruecken -- Germany


Hello Netters,
Can someone send me please a tool to convert bitmaps from POSTSCRIPT
format to GIFF, PBM, or PGM format. I've already looked in the pbmplus
tools, but didn't found anything appropriate.

Please e-mail me additionally to posting.
Regards,
--
-------------------------------------------------------------
|NET: ndiaye@cs.uni-sb.de				    |
|-----------------------------------------------------------|
|POST: Alassane NDIAYE   	   |                        |
|      FB 14 - Informatik IV	   | PHONE: +49-681-302-4135|
|      Universitaet des Saarlandes |                        |
|      Im Stadtwald 15		   |------------------------|
|      D-6600 Saarbruecken 11	   | FAX:   +49-681-302-4421|
|      Federal Republic of Germany |			    |
-------------------------------------------------------------
From: dick@ahold.nl (Dick Heijne)
Newsgroups: comp.windows.x
Subject: Re: HOW TO CONVERT FROM POSTSCRIPT TO GIFF OR PBM ?
Date: 23 Nov 92 11:39:31 GMT
Distribution: comp
Organization: Ahold NV, Zaandam, Netherlands, EEC

In article <NDIAYE.92Nov16110339@sol.cs.uni-sb.de>, ndiaye@sol.cs.uni-sb.de (Alassane Ndiaye) writes:
> 
> Hello Netters,
> Can someone send me please a tool to convert bitmaps from POSTSCRIPT
> format to GIFF, PBM, or PGM format. I've already looked in the pbmplus
> tools, but didn't found anything appropriate.

Please summarize.

Dick
-- 
+==============================Ahold NV===============================+
| Room 146 , Ankersmidplein 2, 1506 CK Zaandam,  The Netherlands, EEC |
| Dick.Heijne@ccsds.ahold.nl - Tel: +31 75 592151, Fax: +31 75 313030 |
+=====================================================================+
Newsgroups: comp.windows.x
From: bryan@alex.com (Bryan Boreham)
Subject: #override translations in XtSetValues -- R5 change?
Keywords: translations
Organization: Alex Technologies Ltd
Apparently-To: mail2news@news.demon.co.uk
Date: Tue, 17 Nov 1992 10:20:54 +0000

It seems to me that R5 has disabled the useful behaviour that Core
would accept an XtSetValues of XtNtranslations beginning #override 
or #augment.  It still works at widget-initialization time, however.
This was never (AFAIK) documented, but it did work in R4.

Was there a reason for this?

Bryan Boreham
bryan@alex.com
From: mahan@TGV.COM (Patrick L. Mahan)
Newsgroups: comp.windows.x
Subject: RE: Initializing Bitmap's
Date: 22 Nov 92 05:15:53 GMT
Organization: The Internet

#
#Is there way to initialize a bitmap to say all 0's , without
#doing without loading it from a data file.  I am drawing on the Pixmap,
#of depth 1, but I getting garbage at locatiuons I have not drawn.
#		Any quick way to do this?  Thanx.

Create a XImage with the data set to all zeros.

Patrick L. Mahan

--- TGV Window Washer ------------------------------- Mahan@TGV.COM ---------

Waking a person unnecessarily should not be considered  - Lazarus Long
a capital crime.  For a first offense, that is            From the Notebooks of
							  Lazarus Long
Newsgroups: comp.windows.x
From: leganza@teal.csn.org (Mark D. Leganza)
Subject: X & Motif FAQ FTP archive locations ?
Organization: Colorado SuperNet, Inc.
Distribution: usa
Date: Mon, 16 Nov 1992 00:47:11 GMT

Could someone please point me towards a current location for these
docs ????

Thanks, Mark
From: hubley-robert@cs.yale.edu (Robert Hubley)
Newsgroups: comp.windows.x
Subject: Xaw emulation of Motif?
Date: 17 Nov 1992 10:23:53 -0500
Organization: Yale University Computer Science Dept., New Haven, CT 06520-2158
Distribution: world
NNTP-Posting-Host: bigbird.cf.cs.yale.edu


  I have an application that uses both Xaw and Motif intrinsics.  I am looking
for some time of a toolkit that emulates some of the Motif calls using Xaw 
calls. Ultimately I would like to port the whole thing over to Xaw so that
I can use the application across platforms that do not support Motif.  Does
anyone have experience doing this or have comments?

-RMH

Newsgroups: comp.windows.x
From: jgg@evb.com (John Goodsen)
Subject: Re: arrow-headed lines in X
Organization: EVB Software Engineering, Inc.
Date: Sun, 22 Nov 1992 17:38:08 GMT

Here's something I pulled of the net from Paul Brown about
a year ago.  Hope it helps you...

--
John Goodsen                           PCIS Programme
Software Process & Environments        Ada Joint Program Office       
EVB Software Engineering               goodsenj@ajpo.sei.cmu.edu
jgg@evb.com


----------------

>
>I am looking for a way to draw arrow-headed line using MOTIF or 
>other X toolkit or Xlib.
>
>Any help will be appreciated.
>Please e-mail your help as I am not a frequent reader of this group.
>
>Thanks in advance.
>
>
>T. Hassan
>


Here is a snippet of some code I developed to draw line segments with
arrow heads.  I don't expect that you'll be able to drop this code in
someplace and use it, but the parametrization of an arrow head on the
end of a given line segment can be reverse engineered if you feel like
taking the time.

-----------------------------------------------------------------------

void        pbDrawArrowOnCanvas (canvas, arrow)
Widget      canvas;
pb_line_ptr arrow;
{
 XSegment arrow_segments[3];
 double  r = .01745329;
 double  l = 30.0;
 double  theta, alpha = 20.0*r;

 /* AVOID FLOATING POINT EXCEPTION... */
 if (!((arrow->pbx2-arrow->pbx1) | (arrow->pby2-arrow->pby1))) return;

 /* MAIN LINE SEGMENT */
 arrow_segments[0].x1 = arrow->pbx1; arrow_segments[0].y1 = arrow->pby1;
 arrow_segments[0].x2 = arrow->pbx2; arrow_segments[0].y2 = arrow->pby2;

 /* ARROW HEAD */
 theta = atan2 ((double)(arrow->pby2 - arrow->pby1),
               (double)(arrow->pbx2 - arrow->pbx1));
 arrow_segments[1].x1 = arrow->pbx2; arrow_segments[1].y1 = arrow->pby2;
 arrow_segments[1].x1 = arrow->pbx2; arrow_segments[1].y1 = arrow->pby2;
 arrow_segments[1].x2 = arrow->pbx2 - (short)(l*cos(theta - alpha));
 arrow_segments[1].y2 = arrow->pby2 - (short)(l*sin(theta - alpha));
 arrow_segments[2].x1 = arrow->pbx2; arrow_segments[2].y1 = arrow->pby2;
 arrow_segments[2].x2 = arrow->pbx2 - (short)(l*cos(theta + alpha));
 arrow_segments[2].y2 = arrow->pby2 - (short)(l*sin(theta + alpha));

 /* DRAW LINE WITH ARROW HEAD */
 XDrawSegments (
  XtDisplay(canvas),
  XtWindow (canvas),
  arrow->Gc,
  arrow_segments,
  3);
 XFlush(XtDisplay(canvas));
}

--------------------------------------------------------------------------

Paul Brown
brown@zen.wes.army.mil
(601) 634-2109

Newsgroups: comp.windows.x
From: dhw@plex-1.ann-arbor.mi.us (David West)
Subject: problem decoding comp.sources.x/X11-intro-doc from sunsite
Followup-To: poster
Organization: Plex-1, Michigan's Public Access Usenet Gateway  (Ann Arbor).
Date: Tue, 17 Nov 1992 18:57:15 GMT

Has anyone managed to atob this successfully?  

I downloaded it (yes, in binary mode) from sunsite.unc.edu (files part0[1-5].Z 
and part06], uncompressed the compressed files, removed the leading text of 
each file (mostly newsheaders) with an editor, concatenated the results 
(without intervening blank lines) and fed them to atob, which complained 
"unexpected end of file".  (Yes, the last line of the last file was the btoa 
checksum line.)

I have successfully atob'ed multi-part downloaded files on other occasions by 
this method.

-- 
-David West            dhw@plex-1.ann-arbor.mi.us

"Ce n'e'tait pas un empire comme il faut, mais nous nous sommes diablement
bien amuse's."  -Col. Fleury, aide-de-camp of Napoleon III
Newsgroups: comp.windows.x,alt.security
From: casper@fwi.uva.nl (Casper H.S. Dik)
Subject: Re: /tmp/.X11-unix fileprotection & re-use
Keywords: X, security, xinit
Organization: FWI, University of Amsterdam
Date: Mon, 23 Nov 1992 22:27:04 GMT

welch@ames.arc.nasa.gov (Todd Welch) writes:

>In conversations regarding X authorization one item has been
>suggested having to do with changing protection of /tmp/.X11-unix
>from its default mode 777 to 700.

>[description of local xhost coercion by usurping DISPLAY elided]

We do something different. First, we have provided startup scripts
that will default to xauth(1) based Xauthority. Cookies
are genereated when necessary. If you do that, you no
longer have to worry about access to the socket.

To prevent removel of the socket, accidental or otherwise,
we have given the /tmp/.X11-unix directory mode 1777, owner root.
At that point, Sun's fbtab file comes in handy:

/dev/console	0666	/tmp/.X11-unix/X0

Alternatively, you can put an entry like:

/dev/console	0700	/tmp/.X11-unix

in /etc/fbtab. Mind you, this works only on Sun's running 4.1.x.

Casper
Newsgroups: comp.windows.x
From: eajjs@cbnewsf.cb.att.com (john.sottile)
Subject: XView for the HP 720/730
Organization: AT&T
Date: Fri, 20 Nov 1992 05:31:24 GMT


Has anyone successfully compiled Xview 3 for the HP 720/730 HP-UX?  I get
pretty far into it and then it bombs miserably.

I'm really trying to get the olvwm for the HP workstation and it appears 
to require xview.

Has anyone done this yet for the hp?


=============================
John Sottile                             "That Guy has to Oil his Brakes!"
AT&T Bell Labs                           #include <std/disclaimer/who-me?.h>
jjs@cblph.att.com

Newsgroups: comp.windows.x.apps
From: naftaly@supergas.dazixco.ingr.com (Naftaly Stramer)
Subject: Re: xcalc in slide rule mode
Reply-To: naftaly@dazixco.ingr.com
Organization: Dazix
Date: Thu, 19 Nov 1992 16:15:13 GMT


In article <1eeelhINNk3t@uwm.edu>, anthony@csd4.csd.uwm.edu (Anthony J Stieber) writes:
>In article <BxxLHL.7By@mail.boi.hp.com> stringha@mail.boi.hp.com (Gary Stringham) writes:
>>>an old version of the X Window System xcalc did in fact have an analog
>>>mode that popped up a slide rule, pretty accurate too I hear.
>>Cool!  How do you invoke it?  There is no mention of it in the man page
>
>Try "xcalc -analog".  At least it worked in X11R2, I think.
>Crossposts and followups to comp.windows.x.apps.
>--
><-:(= Anthony Stieber	anthony@csd4.csd.uwm.edu   uwm!uwmcsd4!anthony

The man pages I have metioned the -analog option, but trying "xcalc -analog" 
will not work.

---
Naftaly Stramer (303)581-2370, FAX (303)581-9972    Intergraph Corporation
Internet: naftaly@dazixco.ingr.com                  Electronics Division    
UUCP: ..uunet!ingr!dazixco!naftaly  	            5101 Spine Road
Please excuse my English			    Boulder, CO 80301
Newsgroups: comp.windows.x.apps
From: dhw@plex-1.ann-arbor.mi.us (David West)
Subject: Seeking index of xapps
Organization: Plex-1, Michigan's Public Access Usenet Gateway  (Ann Arbor).
Date: Tue, 17 Nov 1992 19:02:37 GMT

Anyone know where there's a list of xapp names with very brief descriptions?  
There's a lot of stuff out there with names that don't give a clue to the 
functions implemented.

-- 
-David West            dhw@plex-1.ann-arbor.mi.us

"Ce n'e'tait pas un empire comme il faut, mais nous nous sommes diablement
bien amuse's."  -Col. Fleury, aide-de-camp of Napoleon III
From: mrs@payne.mps.ohio-state.edu (Michael Robert Savage)
Newsgroups: comp.windows.x.apps
Subject: xmail problems
Date: 20 Nov 92 15:13:18 GMT
Followup-To: mrs@payne.mps.ohio-state.edu
Organization: The Ohio State University Astronomy Dept.
NNTP-Posting-Host: payne.mps.ohio-state.edu

Dear X Window People:

 We are running X11 R4 on various types of SUN SPARCstations. One
machine, an IPC, has trouble running xmail. It runs and works OK
except for the following problems:

  (1) System shutdown broadcast messages freeze xmail up. It will
      no longer work and killing xmail is the only way to exit and
      restarting is necessary for full function to be restored.

  (2) Sometimes xmail will die if you try to copy (using CC:) another
      user.

If any one has expierence in fixing these problems or knows about

Take care and have a great day.

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- M. R. Savage                Systems Programmer/Administrator/Manager      -
-                             The Ohio State University                     -
- "If you look for the bad    Department of Astronomy                       -
-  in people, expecting to    College of Mathematical and Physical Sciences -
-  find it, you surely will." Phone Number: (614)-292-3388                  -
-            Abraham Lincoln  FAX Number: (614)-292-2928                    -
-                             E-Mail: mrs@payne.mps.ohio-state.edu          -
-                                     mrs@osustat.mps.ohio-state.edu        -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
From: kdh@i31s21.ira.uka.de (Klaus Hartenstein)
Newsgroups: comp.windows.x.apps
Subject: xtalk-2.8 / xhchat-1.0 available
Date: 20 Nov 1992 14:51:59 GMT
Organization: University of Karlsruhe, FRG
Distribution: world
NNTP-Posting-Host: i31s21.ira.uka.de

The new version 2.8 of xhtalk is now available on
export.lcs.mit.edu:contrib/xhtalk-2.8.tar.Z

Description:
------------
       Xhtalk looks periodically at several hosts
       for specified users, logged on console. All
       found users and their idle times are displayed
       in the xhtalk-window.
       By clicking on a username, an x-based talk (xhchat)
       or the sytem-talk or a user-defined command
       can be chosen.

       Run xhtalk during your session in the background,
       to see who's logged on....

       Xhtalk uses the "finger" protocol and the
       system call "talk".

       (Tested on sun dec)

See also xhchat-1.0.tar.Z. It's an x-based talk similar
to the old xtalk but more comfortable.

-- 
Klaus Hartenstein
From: envbvs@epb11.lbl.gov (Brian V. Smith)
Newsgroups: comp.windows.x.apps
Subject: xfig 2.1.6 on export
Date: 16 Nov 1992 20:09:52 GMT
Organization: lbl
Distribution: world
NNTP-Posting-Host: 128.3.12.123

Well, it has only been a week or so since I released xfig 2.1.5, but there
were some pretty major bugs so I have just released version 2.1.6.
TransFig has also been updated because of bugs.  I will follow with a separate
announcement for it.

Here is the announcement:

xfig 2.1.6 is available on export.lcs.mit.edu in /contrib/R5fixes/xfig-patches/
xfig.2.1.6.tar.Z.  Be sure to set binary mode when transferring.

There is also an incremental patch file to convert from 2.1.5 to 2.1.6.  This
is in the file /contrib/R5fixes/xfig-patches/2.1.5.to.2.1.6.Z.  You may use
the 'patch' program to automatically apply the changes to your 2.1.5 release.

You also need to get TransFig version 2.1.6.  TransFig contains the post-
processor needed by xfig to convert fig files to one of several output formats,
such as PostScript, pic, LaTeX etc.  The TransFig package is in the file
/contrib/transfig.2.1.6.tar.Z.

Xfig is a menu-driven tool that allows the user to draw and manipulate objects
interactively in an X window.  The resulting pictures can be saved, printed
on postscript printers or converted to a variety of other formats (e.g. to
allow inclusion in LaTeX documents).

Following is a description of the CHANGES for 2.1.6.

Patchlevel 6
Changes to Patchlevel 5:

BUG FIXES:

o typo in man pages with menu item "Textyl \special commands" in export menu
o action changed from "cancel" to "dismiss" for print menu accelerator
o bug in Intrinsics? on Sun Monochrome prevented side ruler from scrolling
o was using ellipse routine to draw circles - was choppy for small circles
o cast comparison function argument to qsort
o rotated ellipses don't become coarse as they are zoomed 


-- 
Brian V. Smith    (bvsmith@lbl.gov)
Lawrence Berkeley Laboratory
I don't speak for LBL; they don't pay me enough for that.
From: dcook@garnet.berkeley.edu (Dan Cook)
Newsgroups: comp.windows.x.apps
Subject: Contour plotting...
Date: 17 Nov 1992 04:56:58 GMT
Organization: University of California, Berkeley
Distribution: world
NNTP-Posting-Host: garnet.berkeley.edu

I'm still looking for a contour plotting package... I have
gotten two possibles from several responses... contour and
gnuplot, both of which may be wonderful packages, but alas
they lack the ability to plot contours for a set of x,y,z
data which is not evenly spaced on a rectangular grid...
Part of my problem is that not all of my data is evenly
spaced, so I can't really get what I need from either of
these two programs... If anyone has any other ideas, please
let me know...

-uncle dan
Newsgroups: comp.windows.x.apps
From: Richard.Kooijman@dnpap.et.tudelft.nl (Richard Kooijman)
Subject: xfig and rotated text
Organization: Delft University of Technology, Dept. of Electrical Engineering
Date: Thu, 19 Nov 1992 22:46:40 GMT


Hi,

I know that xfig can't rotate text, but I have read somewhere that the
latest version (we have 2.1.6) should display at least a rotated box
so that you can see where the text will end up on paper.

If I try this, I get the same old result: no rotated text, no box.
Did I misread whatever I read or do you have to do something to enable
this new feature?


Richard.
--
-- ir. Richard Kooijman ------------------ Email: R.Kooijman@ET.TUDelft.NL --
-- Intelligent Network Management Project (INEMA) ---------------------------
-- CARDIT, Delft University of Technology ------------ Tel: (31)-15-786209 --
-- P.O.Box 5031, 2600 GA Delft, The Netherlands ------ Fax: (31)-15-784898 --
From: jwh@cs.bham.ac.uk (James "wibble" Hawtin)
Newsgroups: comp.windows.x.apps
Subject: Re: Internet News Reader for X-Windows
Date: 23 Nov 92 00:08:28 GMT
Reply-To: jwh@cs.bham.ac.uk
Organization: School of Computer Science, The University of Birmingham, UK

try xrn.....

anon ftp from 

world.std.com
/src/X11R3/local/clients
xrn.tar.Z


if you are running xview try xvnews

anon ftp from
sunsitre.unc.edu
/pub/X11/Openlook
xvnews.tar.Z


finding those programs try xarchie :-)

anon ftp from
clover.csv.warwick.ac.uk
/pub/X11
xarchie-1.3.tar.Z


I use xvnews because its cute :)


				James
Newsgroups: comp.windows.x.apps
From: byanoff1@cc.swarthmore.edu (Brian Yanoff)
Subject: xdbx for X11 R5
Organization: Swarthmore College
Date: Sat, 21 Nov 1992 19:06:42 GMT

Does anyone know where I can get a version of xdbx (or another graphical
debugger which will work with PASCAL) which will work under R5 of X11?  The
version for R4 is killed immediately when we run it.

     thanks,

        Brian Yanoff

        byanoff1@cc.swarthmore.edu
From: hiran@ee.uts.edu.au (Hiran Wijetilaka)
Newsgroups: comp.windows.x.apps
Subject: WAnted Database
Date: 18 Nov 92 01:00:37 GMT
Organization: University of Technology, Sydney
NNTP-Posting-Host: vivaldi.ee.uts.edu.au
Keywords: wanted database

Hi all,
I am trying to locate a [freeware/shareware??] database program to keep track 
of some software programs, licensing info etc.
This could also be in the form of source code, as I am 
willing to go thru the 'fiddly-bits'. Any information would be greatly
appreciated. The only proviso is that it should have a nice interface, and
be easy to use !!
Thanks in advance,
---
hiran    hiran@ee.uts.edu.au
Newsgroups: comp.windows.x.apps
From: elf@ee.ryerson.ca (luis fernandes)
Subject: Re: Printing with X
Keywords: Printing
Organization: Ryerson Polytechnical Institute, Toronto
Distribution: USA
Date: Wed, 18 Nov 1992 17:49:51 GMT

ars@ebony.cc.columbia.edu (Ali R. Siddiqui) writes:
>Hello all,
>
>	I have been writing a program which displays a graph of statistics  
>on the screen now I need to add a print option to it and I was wondering  
>if any of you have had any experience with makeing a hardcopy on a ps  
>printer of the Graph which I am displaying in the window using Xdrawline.
>

A quick-and-dirty solution is dumping the window using xwd & xpr
without user interaction.

First define a couple of things, the name of the window you wish
to dump & the name of the device to dump to.

/* name of the application when iconified & on window*/
#define APPNAME "statsgraph"
/* Postscript LaserWriter*/
#define PRINTERDEVICENAME "lw"

Then bind the following function to a key or to a button (via a callback 
mechanism):
void
laser_window()
{
char sysbuf[256];

    sprintf(sysbuf,"xwd -name %s | xpr -device %s | lpr -P%s -h", APPNAME,
        PRINTERDEVICENAME, PRINTERDEVICENAME);

    system(sysbuf);
}


--
luis fernandes  <elf@ee.ryerson.ca>
Newsgroups: comp.windows.x.apps