Date: Fri, 18 May 2001 09:28:16 +0100 From: Nik Clayton <nik@freebsd.org> To: Nik Clayton <nik@freebsd.org> Cc: arch@freebsd.org Subject: Re: [PATCH] syscons ioctl() to grab text mode buffer Message-ID: <20010518092815.B10344@catkin.nothing-going-on.org> In-Reply-To: <20010518010720.A8037@catkin.nothing-going-on.org>; from nik@freebsd.org on Fri, May 18, 2001 at 01:07:20AM %2B0100 References: <20010517121902.A3047@catkin.nothing-going-on.org> <20010518010720.A8037@catkin.nothing-going-on.org>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
On Fri, May 18, 2001 at 01:07:20AM +0100, Nik Clayton wrote:
> (c) Tweaked the output format.
>
> Byte 1 Output format version (currently 1)
> Byte 2 Width of the display at snapshot time, in characters
> Byte 3 Depth of the display at snapshot time, in characters
> Byte 4+ Snapshot data
Following the suggestion of Jeroen C. van Gelderen this is now
Bytes 1 thru 8 Literal "SCRSHOT_"
Byte 9 Version number
Byte 10 Remaining number of bytes in the header
Byte 11 Width of the display
Byte 12 Depth of the display
So a dump of an 80x25 screen would start (in hex)
53 43 52 53 48 4f 54 5f 01 02 50 19
----------------------- -- -- -- --
| | | | ` 25 decimal
| | | `--- 80 decimal
| | `------ 2 remaining bytes of header data
| `--------- File format version 1
`------------------------ Literal "SCRSHOT_"
N
--
FreeBSD: The Power to Serve http://www.freebsd.org/
FreeBSD Documentation Project http://www.freebsd.org/docproj/
--- 15B8 3FFC DDB4 34B0 AA5F 94B7 93A8 0764 2C37 E375 ---
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.5 (FreeBSD)
Comment: For info see http://www.gnupg.org
iEYEARECAAYFAjsE3R4ACgkQk6gHZCw343Ue9QCcDkgdZKQnE4iNXLnhcy2WcK++
jsgAoIjdF4XJF956nEARtcEU5Ay8Hvwq
=5b/e
-----END PGP SIGNATURE-----
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010518092815.B10344>
