From owner-freebsd-hackers Mon Nov 9 13:05:02 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA21851 for freebsd-hackers-outgoing; Mon, 9 Nov 1998 13:05:02 -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 NAA21828 for ; Mon, 9 Nov 1998 13:04:52 -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 UAA28957; Mon, 9 Nov 1998 20:59:20 GMT (envelope-from nik) Message-ID: <19981109205920.58410@nothing-going-on.org> Date: Mon, 9 Nov 1998 20:59:20 +0000 From: Nik Clayton To: Kazutaka YOKOTA , Nik Clayton Cc: hackers@FreeBSD.ORG Subject: Re: text mode screen grabber? References: <19981107152928.28834@nothing-going-on.org> <199811081510.AAA16053@zodiac.mech.utsunomiya-u.ac.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89.1i In-Reply-To: <199811081510.AAA16053@zodiac.mech.utsunomiya-u.ac.jp>; from Kazutaka YOKOTA on Mon, Nov 09, 1998 at 12:10:42AM +0900 Organization: Nik at home, where there's nothing going on Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Nov 09, 1998 at 12:10:42AM +0900, Kazutaka YOKOTA wrote: > >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. > [...] > > Have you considered script(1), a standard command, or `screen', which > is in the port collection, I expect? Yes. They don't seem to capture colours. In a simple format (simple == 2 bytes per character, 1 byte = character code, 1 byte = colour code). [ ioctl() snipped ] > >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. . .". > > No, I don't think you should directly read the internal data structure. > Its format may be different between versions. True enough. I hasten to point out that I'm not trying to write something for wide distribution (at the moment). This is just something to make the FreeBSD Documentation a little more user friendly. After poking a bit more through syscons.c, I think I should be able to implement something like "press 'D' to dump the current screen to /tmp/syscons.dump" or similar. Cheers, 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