Other Printing Commands (xwd, xpr)
Printing a Screen
You can print an image of a window on the screen with a pipeline
of simple commands:
xwd -frame | xpr -device ps | lpr
The command xwd (X window dump) converts the contents
of a window into a file.
The -frame option tells the system to include
the window's frame as well.
The second command xpr -device ps converts the
output file from xwd into PostScript (ps) format.
The lpr command takes the PostScript output of
xpr and prints it on a PostScript laser printer.
After you type this pipeline, the cursor will change to a plus
(+) and you click inside the window you want to print (if you click
in the root background, the whole screen will be captured). You
will hear a beep, and then the image of the screen window will print
on your default printer.
Go to the Print tutor main
page.
Last modified on
July 20, 2004
by cawalker.
|