From owner-freebsd-newbies Sun Sep 9 5:23:34 2001 Delivered-To: freebsd-newbies@freebsd.org Received: from nothing-going-on.demon.co.uk (pc-62-31-42-140-hy.blueyonder.co.uk [62.31.42.140]) by hub.freebsd.org (Postfix) with ESMTP id 6EC5037B405 for ; Sun, 9 Sep 2001 05:23:28 -0700 (PDT) Received: (from nik@localhost) by nothing-going-on.demon.co.uk (8.11.3/8.11.3) id f89CGKi90853; Sun, 9 Sep 2001 13:16:20 +0100 (BST) (envelope-from nik) Date: Sun, 9 Sep 2001 13:16:20 +0100 From: Nik Clayton To: Lal Manavado Cc: freebsd-newbies@freebsd.org Subject: Re: Screen access in freebsd. Message-ID: <20010909131620.Z66592@clan.nothing-going-on.org> Reply-To: nik@freebsd.org References: <000e01c1395f$0b7b7080$617b4382@tocom> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="XilfshMFnlxBucLf" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <000e01c1395f$0b7b7080$617b4382@tocom>; from manavado@frisurf.no on Sun, Sep 09, 2001 at 11:41:25AM -0700 Organization: FreeBSD Project Sender: owner-freebsd-newbies@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --XilfshMFnlxBucLf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Sep 09, 2001 at 11:41:25AM -0700, Lal Manavado wrote: > Could anyone tell me when accessing to the screen content, does > FreeBSD have the equivalent of Linux's vcsa devices which allows reading > back the screen? This used to be unique to Linux I believe. Not directly. 4-stable (and 4.4-RELEASE, when it comes out), and -current support a CONS_SCRSHOT ioctl, which can be used to capture the current contents of the video buffer. The "-P" and "-p" options to vidcontrol use this. Look at the dump_screen() function in src/usr.sbin/vidcontrol/vidcontrol.c to see the code. This is how the "screenshots" of Sysinstall in chapter 2 of the FreeBSD Handbook were generated -- we didn't run Sysinstall in an Xterm and grab the screen that way, we ran it in text mode, ran "vidcontrol -P ..." to dump the data, and then I have tools that convert this format to PNG and plain text (ports/graphics/scr2png, ports/textproc/scr2txt). > My reason for this query, is that I am not very familiar with the nuts=20 > and bolts of freebsd, and would like to use the os with a Braille display. OK. CONS_SCRSHOT currently just dumps the whole screen contents to a buffer that you provide. Is that sufficiently fine tuned for you, or do you need more control over which sections of the screen are grabbed? -newbies is the wrong mailing list for this discussion. I've set Reply-To to point back to me for the time being. hackers@freebsd.org is probably a better bet though. N --=20 FreeBSD: The Power to Serve http://www.freebsd.org/ FreeBSD Documentation Project http://www.freebsd.org/docproj/ --- 15B8 3FFC DDB4 34B0 AA5F 94B7 93A8 0764 2C37 E375 --- --XilfshMFnlxBucLf Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjubXZMACgkQk6gHZCw343X+eQCeMtjll0v8nN9hV2PxAUOeiArg C/UAni+u7o6Z8NeDOjTu+V/Svx9BbIiB =ByiS -----END PGP SIGNATURE----- --XilfshMFnlxBucLf-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message