From owner-freebsd-hackers Sat Nov 7 07:31:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA10853 for freebsd-hackers-outgoing; Sat, 7 Nov 1998 07:31:05 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from nothing-going-on.demon.co.uk (nothing-going-on.demon.co.uk [193.237.89.66]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA10843 for ; Sat, 7 Nov 1998 07:30:55 -0800 (PST) (envelope-from nik@nothing-going-on.demon.co.uk) Received: (from nik@localhost) by nothing-going-on.demon.co.uk (8.8.8/8.8.8) id PAA18406; Sat, 7 Nov 1998 15:29:29 GMT (envelope-from nik) Message-ID: <19981107152928.28834@nothing-going-on.org> Date: Sat, 7 Nov 1998 15:29:28 +0000 From: Nik Clayton To: hackers@FreeBSD.ORG Subject: text mode screen grabber? Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89.1i Organization: Nik at home, where there's nothing going on Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 ) 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