Originally posted by: SystemAdmin
I have to assume you are running Xwindows. If not then just telnet in from a PC and use Snagit or cut and past.
For Xwindows there is a program called xwd. Here's something I put on an internal web site a long time ago and I haven't tested it for a long time.
Also see the AIx printing for fun and profit redbook for AIX 5L.
Print Screen in AIX
AIX does not support a print screen key and a print screen program like DOS has. However some applications do have the capability to print Xwindows and even whole screens. For example the HCON program supports a print screen function by hitting the Print Screen Key.
Xwindows screen capture utilities.
Xwindows has a program that will capture an individual window, or the entire screen or as it is called by Xwindows the root window. This program is called xwd. It supports only black and white. Data captured by this program can be printed to a laser printer by passing it through the xpr filter. Use man or info for details on these commands. I usually create a shell script with one of the following commands that I call winprt to print my xwindow sessions.
Examples of some screen captures are:
xwd -xy | xpr -device ps | qprt -Pps
xwd -bitmap | xpr -device ljet | qprt -Ppcl
xwd -bitmap -root -frame | xpr -device ljet -rv | qprt -Ppcl
There is a program called pbmplus that can be downloaded from sites like the UCLA AIX software program repository that reportedly supports color capture of programs. ftp aixpdslib.seas.ucla.edu
ASCII Terminal screen capture
AIX has no support for this type of activity.
Some terminals support screen dumps to an attached terminal. In this case the terminal is attached to the auxilary port on the back of the terminal. This is the same port that would be used for terminal attached printing.
It is also possible to capture ALL data going to and from a terminal session by starting a script session before starting the application. The output from the script command goes into a file (by default - typescript). This file contains all the imbedded screen commands, and would not be useful for printing, however it would be possible to write and awk script to filter out this data and print the file.
Last Update: 3/17/2001