[comp.graphics] vt320 GIF Viewer

gar@hobbes.catt.ncsu.edu (06/15/91)

I have written a GIF Viewer for the vt320 terminal.  It uses
redefined character sets to display a small image in the center
4cm by 4cm of the screen.  This is the same one that Michael
Steele <mikes@catt.ncsu.edu> posted a message about several
days ago.

I have put this on our anonymous FTP site, garfield.catt.ncsu.edu, as
"pub/gifview.tar.Z".  If you have trouble with this send me mail.

To use it just type "gifview filename.gif" and wait for the redefined
character sets to be transferred across your line.  This takes about 
five seconds at 9600 baud.  As you might expect this will not work
well on a noisy line.  It will also not work unless you have a true
vt320 since it uses a special whole-cell character set that was not on
the vt100, vt200 or any clones to my knowledge.  I haven't ever tried
running it in a X-term (or DECterm), but then again I can't see much
point either.

Then it will display a grayscale (3 shades of gray, dithered) image
close to 100x100 pixels in a window about 1.5-inch by 1.5-inch.
The quality is not very good for most images because I stretch or
squash the image to match the small window size.

I wrote the code for DEC Ultrix, but it shouldn't be
hard to port to VMS, since I use printfs to redefine
the character set.  It should be trivial if you have "gcc" since
it does have ANSI prototypes.

I don't think I bothered with any kind of copyright or other notice,
since the code is too much of a hack to be worth it.  If anyone wants
to use or modify this code for any reason they are welcome to it.
It could certainly use some improvement (like showing the original
GIF resolution and number of colors).

Have fun with it!

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
=                  Greg Reid   (gar@catt.ncsu.edu)                  =
=      SnailMail: 2947 Parkhurst Drive, Winston-Salem, NC 27103     =
=      Home Phone: (919)766-9962      Work Phone: (919)983-5132     =
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
=                  Greg Reid   (gar@catt.ncsu.edu)                  =
=      SnailMail: 2947 Parkhurst Drive, Winston-Salem, NC 27103     =
=      Home Phone: (919)766-9962      Work Phone: (919)983-5132     =