How to take a snapshot of a terminal or window on your desktop!

Wednesday, August 29 2007 @ 03:59 PM MDT

Contributed by: emperor

The simplest way to achieve this end is typing this:

$ xwd -out /tmp/shot.xwd

And then select the window you want to "photograph" with your mouse pointer.

Once you obtain the dump, convert will help you convert to the format of choice.

$ convert /tmp/shot.xwd ~/shots/xterm.png

or

$ convert /tmp/shot.xwd ~/shots/xterm.jpg

0 comments



http://hllug.org/article.php/20070829155904371