Operating System - HP-UX
1847694 Members
6884 Online
110265 Solutions
New Discussion

Screen prints on HPUX 11.00

 
John Downs_1
Frequent Advisor

Screen prints on HPUX 11.00


Hi, what's the best way to print parts of the screen that do not support a print feature in the application? Graphs and tables generated by cadence or ads.

Thanks!

-john
I'd rather be fly fishing for trout!
4 REPLIES 4
Pete Randall
Outstanding Contributor

Re: Screen prints on HPUX 11.00

John,

You can print the whole X window with something like this:
XPR=/usr/contrib/bin/X11/xpr
XWD=/usr/bin/X11/xwd
HEADER="Printed by `whoami` on `date`"
$XWD -frame | $XPR -header "$HEADER" -cutoff 75| lp -o nb -oraw -d$printer

Hope this helps,
Pete

Pete
Bill McNAMARA_1
Honored Contributor

Re: Screen prints on HPUX 11.00

the CDE session should have, as part of the tools, a screen capture utility that supports screen selection and output to various formats.
XWDs is not so portable..
I use imagemagik to port them after.


Later,
Bill
It works for me (tm)
Alex Glennie
Honored Contributor

Re: Screen prints on HPUX 11.00

Various choices :

use XV freeware utility or similar ....gimp,imagemagick etc.

use HP's screencapture utility part of mpower web product - purchaseable on apps CD's.

use xwd (see man page for xwd and xpr) eg xwd | xpr -device | lp

screenpr | lp may also be of use

use sceenpr -h for list of options.



Systeemingenieurs Infoc
Valued Contributor

Re: Screen prints on HPUX 11.00

I use 2 little scripts :
- the first prints the whole screen
- the second prints a selected window

function prscreen
{
tmp_file="/tmp/prscreen.$$.tmp"
tmp_file2="/tmp/prscreen.$$.tmp2"

xwd -out $tmp_file -root
xpr -device ljet -output $tmp_file2 -gray 2 $tmp_file
lp -oraw -d$PRINTER $tmp_file2
rm -f $tmp_file2 $tmp_file
}

function prwin
{
tmp_file="/tmp/prwin.$$.tmp"
tmp_file2="/tmp/prwin.$$.tmp2"

xwd -out $tmp_file -screen
xpr -device ps -output $tmp_file2 -gray 2 $tmp_file
lp -onb -d$PRINTER $tmp_file2
rm -f $tmp_file $tmp_file2
}
A Life ? Cool ! Where can I download one of those from ?