*BSD News Article 69776


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!metro!metro!munnari.OZ.AU!news.ecn.uoknor.edu!solace!nntp.uio.no!Norway.EU.net!EU.net!sun4nl!beta.nedernet.nl!usenet
From: Gary Howland <gary@systemics.com>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: 2? - dump and a "print screen" thingy
Date: Thu, 30 May 1996 15:42:40 +0200
Organization: Systemics Ltd.
Lines: 17
Message-ID: <31ADA5D0.5648FDB4@systemics.com>
References: <31ACDD3D.5A27@ainet.com>
NNTP-Posting-Host: mainstreet.support.nl
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-2
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.0b2 (X11; I; FreeBSD 2.1.0-RELEASE i386)
X-Forwarded: by - (DeleGate2.8.31)

Dale Phillips wrote:

> Does anyone know of a dos like "print screen" to file utility?

I wrote on years ago by reading /dev/mem.
I've just had a look for the source, but no longer seem to have it.
It is very simple though, just seek to the start of screen memory
(ask on one of the PC programmers newsgroups), and read 80x25 bytes
(actually, I think it is 80x25 pairs of bytes, otherwise you could
use dd to get the screen).

Don't forget to make your program suid.

Gary
--
pub  1024/C001D00D 1996/01/22  Gary Howland <gary@systemics.com>
Key fingerprint =  0C FB 60 61 4D 3B 24 7D  1C 89 1D BE 1F EE 09 06