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