Date: Sun, 9 Sep 2001 13:16:20 +0100 From: Nik Clayton <nik@freebsd.org> To: Lal Manavado <manavado@frisurf.no> Cc: freebsd-newbies@freebsd.org Subject: Re: Screen access in freebsd. Message-ID: <20010909131620.Z66592@clan.nothing-going-on.org> In-Reply-To: <000e01c1395f$0b7b7080$617b4382@tocom>; from manavado@frisurf.no on Sun, Sep 09, 2001 at 11:41:25AM -0700 References: <000e01c1395f$0b7b7080$617b4382@tocom>
next in thread | previous in thread | raw e-mail | index | archive | help
--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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010909131620.Z66592>