Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

saving screen

0 views
Skip to first unread message

Howarddo4

unread,
Apr 9, 1998, 3:00:00 AM4/9/98
to

Hello all,

I am looking for help. I am trying to save the screen and whatever is on it. I
need to do this by saving the red, green, blue and int. Can anyone help me?
I'm need to do this in C.

Thanks in advance,
Howard Dufour

Jack Klein

unread,
Apr 9, 1998, 3:00:00 AM4/9/98
to

Howarddo4 <howa...@aol.com> wrote in article
<199804090113...@ladder03.news.aol.com>...


<Jack>

The C language doesn't define a screen or any functions to access it.
What you want is some platform specific extension for your computer,
compiler, and operating system. Try asking this question in a group
about your platform (example comp.os.msdos.programmer) or about your
compiler.

</Jack>


nos...@ll.mit.edu

unread,
Apr 9, 1998, 3:00:00 AM4/9/98
to

Howard,

You need to save the screen? It sounds like a dire emergency, try
911. They save all sorts of things, even hurt animals.

Oh, I see. You mean the data on the screen, you want this stored in a
file? Ok, no problem. Since you don't mention any specific platform or
system, I assume you are referring to a TRS-80 Model I, in which case
saving all text and graphics is a piece of cake. All ASCII text
(decimal 127 and below) represents itself, and any other pixels are
combined into each text (byte) memory position, 2 wide and 3 high. And
the TRS-80 had no external memory cache, thus greatly simplifying the
project. Thus, each screen position (byte) holds 6 pixels, which is 64
values, and is included in the upper end of the ASCII byte. Thus, you
just start at the memory address of the upper-left corner (what is that
memory location, been years since I've done this. I've got a Model I
book lying around somewhere ...), and keep incrementing it. Each memory
increment moves the cursor one block to the right on the screen, and at
column 64, you move to the next row. Thus, you can save the entire
screen in a string of text (easily written to a text file, or whatever
output you desire) in 1024 bytes! not too shabby for an entire screen's
worth of graphics, eh? If you're talking about a Model III (it was hard
to tell, from your original message), watch out, the upper ASCII
characters have symbols (similar to IBM).
Hey, you mention red, green, blue, and intensity, TRS-80 is
monochrome. I guess you're really talking about a CoCo then. Can't
really help you there.

Mark Brown

unread,
Apr 10, 1998, 3:00:00 AM4/10/98
to

howa...@aol.com (Howarddo4) writes:

> I am looking for help. I am trying to save the screen and whatever is on it. I
> need to do this by saving the red, green, blue and int. Can anyone help me?
> I'm need to do this in C.

The details of how (or indeed, if) you can find out what's on the
screen vary greatly between different kinds of computer, and you
should consult a newsgroup related to your particular kind of computer
(for example, comp.os.msdos.programmer if you're using DOS or
comp.os.ms-windows.programmer.* if you're using Windows) to find the
relevant information for your platform.

--
Mark Brown mailto:bro...@tardis.ed.ac.uk (Trying to avoid grumpiness)
http://www.tardis.ed.ac.uk/~broonie/
EUFS http://www.ed.ac.uk/~filmsoc/

Giorgos Keramidas

unread,
Apr 16, 1998, 3:00:00 AM4/16/98
to

Howarddo4 wrote:
>
> Hello all,

>
> I am looking for help. I am trying to save the screen and whatever is on it. I
> need to do this by saving the red, green, blue and int. Can anyone help me?
> I'm need to do this in C.

this is really dependent on the hardware, and operating system you're
using.
It certainly is easy to find information about it in some mor relevant
newgroup,
more closely related to your specific platform, however... this is
kind of off
the topic here in c.l.c because here we are trying to discuss the
language
itself, in a platform-independent manner (as possible that could be).

anyway, some newgroups thatcan be helpful are:

- news:comp.os.msdos.programmer
- news:comp.os.windows.programmer
- news:comp.os.linux.development.apps

plus, you could always try a search at DejaNews
(http://www.dejanews.com) for
past articles related to your question.

> Thanks in advance,

you're welcome...

--
giorgos keramidas <kera...@ceid.upatras.gr>
"in the name of the father, the son and the linux-spirit"

0 new messages