A/UX: Find, Dump & Print an 8-Bit Window w/ X Windows (9/94)


I have been trying under X Windows to find and dump an 8-bit window as described in the "README" file under usr/lib/X11. If you set the window plane to the normal white and dump it, the xpr routine seems to work fine. However, if you set the background to a color (like solid blue with yellow text), and you bring back the window with the xwud routine and print it with xpr, you get a blank page.

I assumed that I had not found the proper plane, but I tried many parameters and could not get it to print. Can you give me an example to show how it works?

We successfully used xwd, xwud and xpr to print both 1-bit and 8-bit
windows on a LaserWriter. We also used the plane option of xwud to specify
bit planes of xy format dump files. Here are the steps we followed:

1) On our 8-bit screen, we created an xterm window with a blue background
and a yellow foreground (text), cursor, and pointer.

xterm -bg blue -fg yellow -cr yellow -ms yellow &

2) We dumped the xterm window to the file dump.xy with the xwd command.

3) We used the xy option to print to our non-color LaserWriter in the next
step.

xwd -xy -out dump.xy

4) To print the dumped image, we used the xpr command with the output piped
to our LaserWriter. The "device ps" option dumps the image in a
PostScript bitmap. We added the rv (swap foreground and background
colors) option to prevent a white on black image.

xpr -device ps -rv dump.xy | atprint

5) To display the dumped file on screen, we used the xwud command. The raw
option greatly speeds up the display operation.

xwud -in dump.xy -raw

6) To display a specific plane of the file, we used xwud with the plane
option, and a second monitor set to 1 bit. The plane option accepts a
value in the range of 0 to 7.

xwud -in dump.xy -plane 0 -display :0.1


Article Change History:
09 Sep 1994 - Reviewed.
31 Aug 1992 - Reviewed.

Support Information Services



Published Date: Feb 18, 2012