From owner-freebsd-arch Fri May 18 1:31:35 2001 Delivered-To: freebsd-arch@freebsd.org Received: from nothing-going-on.demon.co.uk (pc-62-31-42-140-hy.blueyonder.co.uk [62.31.42.140]) by hub.freebsd.org (Postfix) with ESMTP id 30D9237B422; Fri, 18 May 2001 01:31:31 -0700 (PDT) (envelope-from nik@nothing-going-on.demon.co.uk) Received: (from nik@localhost) by nothing-going-on.demon.co.uk (8.11.3/8.11.3) id f4I8Tan10440; Fri, 18 May 2001 09:29:36 +0100 (BST) (envelope-from nik) Date: Fri, 18 May 2001 09:28:16 +0100 From: Nik Clayton To: Nik Clayton Cc: arch@freebsd.org Subject: Re: [PATCH] syscons ioctl() to grab text mode buffer Message-ID: <20010518092815.B10344@catkin.nothing-going-on.org> References: <20010517121902.A3047@catkin.nothing-going-on.org> <20010518010720.A8037@catkin.nothing-going-on.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="ZfOjI3PrQbgiZnxM" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010518010720.A8037@catkin.nothing-going-on.org>; from nik@freebsd.org on Fri, May 18, 2001 at 01:07:20AM +0100 Organization: FreeBSD Project Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: X-Loop: FreeBSD.ORG --ZfOjI3PrQbgiZnxM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 18, 2001 at 01:07:20AM +0100, Nik Clayton wrote: > (c) Tweaked the output format. >=20 > 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=20 ----------------------- -- -- -- -- | | | | ` 25 decimal | | | `--- 80 decimal | | `------ 2 remaining bytes of header data | `--------- File format version 1 `------------------------ Literal "SCRSHOT_" N --=20 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 --- --ZfOjI3PrQbgiZnxM Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.5 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjsE3R4ACgkQk6gHZCw343Ue9QCcDkgdZKQnE4iNXLnhcy2WcK++ jsgAoIjdF4XJF956nEARtcEU5Ay8Hvwq =5b/e -----END PGP SIGNATURE----- --ZfOjI3PrQbgiZnxM-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message