From owner-freebsd-questions@FreeBSD.ORG Sat Jun 5 04:40:36 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4C8D316A514 for ; Sat, 5 Jun 2004 04:40:36 -0700 (PDT) Received: from grebe.mail.pas.earthlink.net (grebe.mail.pas.earthlink.net [207.217.120.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1FE4843D2D for ; Sat, 5 Jun 2004 04:40:35 -0700 (PDT) (envelope-from rpratt1950@earthlink.net) Received: from user166.net317.fl.sprint-hsd.net ([65.40.2.166] helo=kt.weeble.com) by grebe.mail.pas.earthlink.net with smtp (Exim 3.33 #1) id 1BWZX2-0007Ls-00; Sat, 05 Jun 2004 04:40:13 -0700 Date: Sat, 5 Jun 2004 07:41:35 -0400 From: Randy Pratt To: Stephen Liu Message-Id: <20040605074135.01d5207c.rpratt1950@earthlink.net> In-Reply-To: <20040605092250.7138.qmail@web40303.mail.yahoo.com> References: <20040604214149.082b2831.rpratt1950@earthlink.net> <20040605092250.7138.qmail@web40303.mail.yahoo.com> X-Mailer: Sylpheed version 0.9.11 (GTK+ 1.2.10; i386-portbld-freebsd4.10) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: questions@freebsd.org Subject: Re: How to make a screenshot? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jun 2004 11:40:36 -0000 On Sat, 5 Jun 2004 17:22:50 +0800 (CST) Stephen Liu wrote: > Hi Randy, > > FreeBSD 5.2 > > > vidcontrol -p < /dev/ttyv0 > shot.scr > > with the above command a file 'shot.scr' was created. > But I have no program to view it. > > # pkg_info | grep scr2txt > # pkg_info | grep scr2png > # pkg_info | grep -w xv > all no printout > > # cd /usr/ports > # make search name=scr2txt > Port: scr2txt-1.1 > Path: /usr/ports/textproc/scr2txt > Info: Converts the output of "vidcontrol -p" to text The scr2txt is used to convert the console screenshot (.scr) to plain text: scr2txt < shot.scr > shot.txt This works well for .scr that are text and can be viewed with any text editor. > # make search name=scr2png > Port: scr2png-1.1_4 > Path: /usr/ports/graphics/scr2png > Info: Converts the output of "vidcontrol -p" to PNG The scr2png is used to convert the console screenshot (.scr) to a .png image: scr2png < shot.scr > shot-1.png The image (.png) can then be viewed with any image viewer. > # make search name=xv | grep -w xv > Port: xv-3.10a_3 > Path: /usr/ports/graphics/xv > > Kindly advise Whether I have to install either of the > above program to read shot.scr? Yes, the scr2png will probably suit your needs best if you want to make screenshots of the console. > > The following command will dump contents of the > > fourth virtual > > terminal to the standard output in the human > > readable format: > > > > vidcontrol -P < /dev/ttyv3 > > On KDE desktop Konsole window > > # vidcontrol -P < /dev/ttyv3 > no graphic image displayed > (tried both -P and -p) > > Besides I have to 'su' to use 'vidcontrol' Vidcontrol is used for taking console screenshots. It will not display them. After processing with scr2png, then an image viewer is needed to view them. > B.R. > Stephen Liu > > > > The .scr images can be manipulated with > > textproc/scr2txt and > > graphics/scr2png. The man pages for both describe > > their usage. > > > > These are the tools that are used to produce the > > screenshots of > > the console and Sysinstall in the Handbook. > > > > For screenshots in XFree86, I find that graphics/xv > > does the job > > quite nicely without a lot of fuss. Vidcontrol was suggested for screenshots of the console. I'm not aware of any method to use it to take screenshots in XFree86. As you can tell by this thread, there are plenty of options for making screenshots while in X. Randy