Date: Sat, 7 Nov 1998 15:29:28 +0000 From: Nik Clayton <nik@nothing-going-on.demon.co.uk> To: hackers@FreeBSD.ORG Subject: text mode screen grabber? Message-ID: <19981107152928.28834@nothing-going-on.org>
next in thread | raw e-mail | index | archive | help
Has anyone got (or have pointers to useful code) a screen grabber for syscons? Ideally (and given an 80x25 screen) I'm looking for something that would write a 4000 byte file of { character code, colour } tuples. I want to do this so I can put screenshots in the Handbook. I think I can 1. Take a dump of a screen from sysinstall (i.e., run sysinstall on VT1, run the screen dump program on VT2) 2. Read this dump and produce an HTML table 'screenshot' (see <URL:http://www.freebsd.org/~rpratt/>) 3. Read this dump and produce a GIF file. This way I get screenshots suitable for people with and without graphic browsers/printers, and the process is relatively easy to automate. If I was doing this in DOS, I'd just set a pointer to 0xb80000000 and write the next 4000 bytes. I figure I can do this (as a root process) by opening /dev/kmem. But virtual terminals will presumably screw this up. I've had a look at the syscons code, and some of the screen savers, but nothing's leaping out at me saying "Here, this is where the screen buffer is. . .". N -- C.R.F. Consulting -- we're run to make me richer. . . To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19981107152928.28834>