darren2@bigsur.UUCP (Darren Toop) (01/13/90)
Oh, how I hate retyping what is already on the screen.
Oh, how I love to make a screen dump of the new version of my tool
so the technical writer has a high probability of getting it right.
Oh, how dissapointed I was that X.11/clients/xpr/xdpr would not
screen dump if I had a menu popped up (couldn't grab the focus).
Oh, how happy I was to find that there is a trivial workaround.
I call it xdprd, for "xpdr delayed". It waits 10 seconds and
screen dumps the root window, and all sub windows. It's a bit of
overkill but some guy keeps bugging me about adding another
feature to my program, so I didn't spend a lot of time on it:
The following is the diff from X.11/clients/xpr/xdpr
30c30
< xwd $dv | xpr $flags | lpr $prntr
---
> sleep 10; xwd -root $dv | xpr $flags | lpr $prntr
It sleeps for 10 seconds to give you time to popup the menu/
dialog/etc, then dumps the root window.