Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Nov 1998 08:36:56 +0000 (GMT)
From:      Terry Lambert <tlambert@primenet.com>
To:        nik@nothing-going-on.demon.co.uk (Nik Clayton)
Cc:        yokota@zodiac.mech.utsunomiya-u.ac.jp, nik@nothing-going-on.demon.co.uk, hackers@FreeBSD.ORG
Subject:   Re: text mode screen grabber?
Message-ID:  <199811110836.BAA06729@usr02.primenet.com>
In-Reply-To: <19981109205920.58410@nothing-going-on.org> from "Nik Clayton" at Nov 9, 98 08:59:20 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> 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.

Then:

	write( 1, "\033[2i", 4);

And read the data it sends back (it will send escape sequences to
represent bold, color changes from the default, etc.) until you
have read "rows" worth of "\n"'s.

Pretty trivial to implement both the ESC [ 2 i in syscons, and the
code in the program that needs to read the screen.


					Terry Lambert
					terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.

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?199811110836.BAA06729>