Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet thread from alt.ascii-art, started 21 Mar 1994.
 _   _                     _        _             _     _           
| | | |___  ___ _ __   ___| |_     / \   _ __ ___| |__ (_)_   _____ 
| | | / __|/ _ \ '_ \ / _ \ __|   / _ \ | '__/ __| '_ \| \ \ / / _ \
| |_| \__ \  __/ | | |  __/ |_   / ___ \| | | (__| | | | |\ V /  __/
 \___/|___/\___|_| |_|\___|\__| /_/   \_\_|  \___|_| |_|_| \_/ \___|
DIS .vt files

DIS .vt files

alt.ascii-art · 2 messages · 21 Mar 1994 - 22 Mar 1994
In article <2mj...@srvr1.engin.umich.edu>, Matt Messina <mes...@umich.edu> writes:
|> In article <2miaof$ek...@lyra.csx.cam.ac.uk> 
|> C.M.G. Lee, 93c...@eng.cam.ac.uk writes:
|> > Hi!  I seem to have a problem uudecoding those .vt files;
|> > It always says "Short file" and the resulting animation terminates
|> > abruptly, leaving me with weird characters.  Anyone know what's wrong?
|> 
|> This may be because you're losing space characters at the end of lines.
|> Spaces at the end of lines carry information just like any other character.
|> Are you saving the post or cutting and pasting the uuencoded part?  If the
|> latter, try saving.  If the former, you'll have to find a better newsreader.

I've seen this problem caused by people overwriting their uuencoded WHILE they
are decoding it.  An illustration:

Take fishy2.vt for example.  Notice the first line of the uuencode section:
begin 600 fishy2.vt

This line causes uudecode to make a file with mode 600 (octal) called fishy2.vt.
The problem is, if you call the uuencoded file fishy2.vt, then try
"uudecode fishy2.vt", the decode process will overwrite the input file.  This
always causes a "short file" error.  Try saving the uuencoded file fishy2.vt.uu
then uudecode fishy2.vt.uu to produce fishy2.vt.

And now that I'm here:  someone a while back posted a C program that
does the same thing as cat (sorry, can't find the original post to give
credit).  Anyway, for those of you who want to slow down the animation,
you can use the following modified version.  Just set DELAY to a suitable
number to slow down the animation.  1000 works best on this computer, but
change it to suit your taste.


#define DELAY 1000

#include <stdio.h>
int main()
{
   int x;

   while (!feof(stdin))
   {
       putchar(getchar());
       for(x=0; x<=DELAY;x++);
   }
}

========
E-mail to:  awm...@eos.ncsu.edu or amu...@dante.exide.com
#include <std_disclaimers.h>

In <2mkrap$64...@dante.exide.com> mur...@sunw30.exide.com (Alan Murray) writes:
[Some stuff deleted.]
>
>And now that I'm here:  someone a while back posted a C program that
>does the same thing as cat (sorry, can't find the original post to give
>credit).  Anyway, for those of you who want to slow down the animation,
>you can use the following modified version.  Just set DELAY to a suitable
>number to slow down the animation.  1000 works best on this computer, but
>change it to suit your taste.
>
[Program deleted.]

You are doing it all wrong.
Here is the program I use.

#include <malloc.h>

int main(argc, argv)
    char **argv;
{
    char *ptr;
    int i, l = argc > 1 ? atoi(argv[1]) : 1;

    if(ptr = malloc(l))
    {
	while((i = read(0, ptr, l)) && i != -1)
	    write(1, ptr, l);
    }

    return 0;
}

It takes one argument. "1" being the slowest and the bigger the faster.


-- 
Badvoc.       Chris Purnell | main[]={0x40000002,0x90102001,0x9203e020,
Campaign Against Real Names | 0x9410200e,0x82102004,0x91d00000,
cri...@dcs.warwick.ac.uk     | 0x82102001,0x91d00000,0x48656c6c,
csu...@csv.warwick.ac.uk     | 0x6f2c2057,0x6f726c64,0x210a0000};

Related ASCII art in the Gallery

Explore these categories from our collection of 11,000+ artworks:

About this thread. These messages were posted publicly to the newsgroup alt.ascii-art in 1994 and are mirrored here unchanged as part of the Historic Archives – only email addresses are masked. The artwork and text belong to their original authors: if you copy a piece, keep the artist's initials or signature intact and credit them where you can. Are you one of the authors? Contact us to get your posts attributed, connected to your artist profile, or removed.

Report this message

Help us keep the archive clean and accurate. Reports are reviewed by a person – nothing is changed automatically.

Help classify this post