SCREENDUMP(1) — USER COMMANDS
NAME
screendump − dump frame buffer image to file
SYNOPSIS
screendump [ −ce ] [ −f framebuffer ] [ −t type ] [ file ]
DESCRIPTION
Screendump reads the contents of a frame buffer and writes the display image to file (standard output default) in Sun standard rasterfile format (see /usr/include/rasterfile.h).
OPTIONS
−c Dump the frame buffer contents directly without making a temporary copy in a memory pixrect. Saves time and memory but lengthens the time the frame buffer must be inactive to guarantee a consistent screen dump.
−f framebuffer
Dump the specified frame buffer device (default /dev/fb).
−t type
Set the output rasterfile type (default 1, RT_STANDARD). See /usr/include/rasterfile.h.
−e Set the output rasterfile type to 2, RT_BYTE_ENCODED. For most images this saves a significant amount of space compared to the standard format.
EXAMPLES
tutorial% screendump save.this.image
writes the current contents of the console frame buffer into the file save.this.image.
tutorial% screendump −f /dev/cgtwo0 save.color.image
writes the current contents of the color frame buffer /dev/cgtwo0 into the file save.color.image.
tutorial% screendump | lpr −Pversatec −v
sends a rasterfile containing the current frame buffer to the lineprinter, selecting the printer named “versatec” and the “v” output filter (see /etc/printcap).
FILES
/usr/lib/rasfilters/∗Filters for non-standard rasterfile formats
SEE ALSO
lpr(1), rasfilter8to1(1), rastrepl(1), screenload(1)
File I/O Facilities for Pixrects in Pixrect Reference Manual
BUGS
The output file or the screen may be corrupted if the frame buffer contents are modified while the dump is in progress.
Sun Release 3.4 — Last change: 16 January 1987