link to content
Essentials at NC State Home
skip header navigation and go to content Help | ResNet | Computing@NC State | For OIT Staff | Publications | Search NC State | Feedback | Site Map
your unity account
antivirus & security
email & messaging
connections & labs
your computer
software@nc state
files
web pages
education & training
publications
other resources
troubleshooting
ITD Sections

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.

jump back to content/page ends, begin footer
jump to content
jump to content Go to page top Page Top | Site Map | OIT | Policy Disclaimer | Site Survey