Printing a Screen Dump in HP-UX


  • In a separate terminal window that is not overlapping the one you want to print, enter:
    xwd -out [filename]
  • The cursor will change to +. Click on the window you want to print.
  • Print the window with:

    (Landscape) xpr -device ps -landscape [filename] | lp

    (Portrait) xpr -device ps -portrait [filename] | lp

    Now if you want to save the file in a better format, run the program xv.

    xv [filename]

    Then, to save the file, click on the image with the right mouse button and a menu should appear. Click save, and then choose the file type you want to save as (JPEG is usually a good choice). Enter a name for the file at the bottom of the window and click OK. You will get a settings window (if you use jpeg) and the defaults should work ok.