From owner-freebsd-hackers Wed Nov 11 22:39:48 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA03493 for freebsd-hackers-outgoing; Wed, 11 Nov 1998 22:39:48 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from detlev.UUCP (79.camalott.com [208.203.140.79]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA03484 for ; Wed, 11 Nov 1998 22:39:44 -0800 (PST) (envelope-from joelh@gnu.org) Received: (from joelh@localhost) by detlev.UUCP (8.9.1/8.9.1) id AAA18460; Thu, 12 Nov 1998 00:39:22 -0600 (CST) (envelope-from joelh) To: Terry Lambert Cc: nik@nothing-going-on.demon.co.uk (Nik Clayton), yokota@zodiac.mech.utsunomiya-u.ac.jp, hackers@FreeBSD.ORG Subject: Re: text mode screen grabber? References: <199811110836.BAA06729@usr02.primenet.com> From: Joel Ray Holveck Date: 12 Nov 1998 00:39:22 -0600 In-Reply-To: Terry Lambert's message of "Wed, 11 Nov 1998 08:36:56 +0000 (GMT)" Message-ID: <86iuglifdx.fsf@detlev.UUCP> Lines: 29 X-Mailer: Gnus v5.5/Emacs 20.3 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >> 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. > Or implement ESC [ 2 i processing into syscons, and when it gets > the ESC [ 2 i, have it stuff the input buffer with the screen > contents. This doesn't capture the colors (can be modified, but with effort), and besides, is only useful if you feel like modifying the app you are capturing. It was my impression that, for this hacker's needs, this would be several apps all over FreeBSD. I would lean towards a ioctl to stuff the screen buffer into a userland buffer myself. Quick, painless, and can be used by the app or a separate program. Seeing as how it's to help our docs, if you don't feel like writing the syscons patch, send me a private email and I'll hack it out myself. Happy hacking, joelh -- Joel Ray Holveck - joelh@gnu.org Fourth law of programming: Anything that can go wrong wi sendmail: segmentation violation - core dumped To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message