Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!usenet.ins.cwru.edu!mephisto!ncar!bierstadt!morreale From: morreale@bierstadt.ucar.edu (Peter Morreale) Newsgroups: comp.windows.x Subject: Re: Getting full screen dumps Message-ID: <5528@ncar.ucar.edu> Date: 3 Dec 89 03:16:55 GMT References: <40261@lll-winken.LLNL.GOV> <40265@lll-winken.LLNL.GOV> Sender: news@ncar.ucar.edu Reply-To: morreale@bierstadt.UCAR.EDU (Peter Morreale) Organization: Scientific Computing Division/NCAR, Boulder CO Lines: 45 In article <40265@lll-winken.LLNL.GOV> brooks@maddog.llnl.gov (Eugene Brooks) writes: >In article <40261@lll-winken.LLNL.GOV> brooks@maddog.llnl.gov () writes: >>Is there an undocumented way to tell xwd to dump the whole screen, >>cursor and all, instead of the interactive move the cursor to the >>window and press the button. I want to get full screen dumps for >>a tutorial manual using awm in our X environment here (a translation >>of the fine one using twm from RIACS). >>brooks@maddog.llnl.gov, brooks@maddog.uucp >Yes, there is (-root)... When in doubt, read the source! > >brooks@maddog.llnl.gov, brooks@maddog.uucp Yes, that will work.... Here's another method. This is for Suns in particular, I don't know about other hardware.... Create the following script: screendump -ce | rasttopbm | pbmtoxwd | xpr -device ps -scale 2 | Then either hookup another terminal to your machine, or, if you X-station is networked in your environment, log on again to your machine (ie. rlogin, etc..). Then run the script and the entire screen will be dumped. The problem I ran into was that I had bound the X utilities to a function key (to keep the screen exact) but then realized that I couldn't get the twm menus in the dump. (since I had tied up twm in poping up the menus..... :-( ) As I understand the script, I'm dumping the frame buffer through some of pbm's and X's filters to convert it (finally) into PostScript which then is piped into our Postscript printer. Perhaps there is an easier way, but the above worked fine. (Thank you Dave Curry!) -PWM -------------------------------------------------------------------------------- Peter W. Morreale email: morreale@ncar.ucar.edu Nat'l Center for Atmos Research Scientific Computing Division voice: (303) 497-1293 Consulting Office --------------------------------------------------------------------------------