From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Date: Fri, 28 Jul 2000 08:26:22 +0000 From: Dennis Ritchie Message-ID: <3981000D.FA4E4A@bell-labs.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit References: <200007271407.KAA15583@cse.psu.edu> Subject: Re: [9fans] on a lighter note Topicbox-Message-UUID: ece4966c-eac8-11e9-9e20-41e7f4b1d025 rob pike wrote: > > > How does one make screenshots of plan9 (using the in-house utilities and > > not writing a program of his/her own)? > > % togif < /dev/screen > screenshot.gif > > and variations. One variation is #!/bin/rc wid=`{cat /dev/winid} echo snarf this: echo ' cat /dev/wsys/'$wid'/window >x.pic; togif x.pic >x.gif' echo Then make picture; echo then send snarfed string to a non-overlapping window. if you want to snapshot just a particular window instead of the whole screen. Parameterize or use a pipe to avoid named files at leisure.