Operating System - HP-UX
1753772 Members
5149 Online
108799 Solutions
New Discussion юеВ

Re: how to copy text and image on screen to a file

 
SOLVED
Go to solution
Bill Hassell
Honored Contributor

Re: how to copy text and image on screen to a file

You are using Xwindows for character screens and that makes for a very difficult copy/print scenario. Xwindows was designed for graphics but corresponding features to capture the screens are very proprietary (xwd) and no built-in tools will copy the bitmap to a printer. There are no built-in tools to convert this xwd file to a PC-friendly format like JPEG or TIFF.

The reason is that Xwindows was designed for Unix workstations, not PCs. Your PC is pretending to be the graphic console on a workstation through the use of special software. Indeed, the character mode window (xterm, dtterem, hpterm) is actually resident on the HP-UX box -- you're just redisplaying the image on your PC.

One way to capture the text is simply use your mouse to highlight the text and copy the desired area. Then open a copy of Notepad (*not* Word or some other word processor) and paste the text into Notepad. Notepad is a pure ASCII program and text will now be portable.

However, it is much, much simpler to bypass all the Xwindow junk and simply use telnet, either the PC's built-in telnet command in the DOS command window, or a separate emulator like Hyperterminal. Now your screen is local to your PC and all the normal File -> Print choices will work.


Bill Hassell, sysadmin
Pete Randall
Outstanding Contributor

Re: how to copy text and image on screen to a file

In HP-UX running CDE, there is a command called xwd, which will "dump an image of an X window". You can then use the companion command xwud to display the image or xpr to print it. Check the man pages for xwd, xwud, and xpr.


Pete

Pete
cys691018
Advisor

Re: how to copy text and image on screen to a file

Thanks for your good solutions .
Raj D.
Honored Contributor

Re: how to copy text and image on screen to a file

Though xwd captures the screen , but the image is not very clear. Just fyi.

hth,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
cys691018
Advisor

Re: how to copy text and image on screen to a file

From those replies and solutions ,I got the answer ro my question.