X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fbb9d,4b61792013878b68 X-Google-Attributes: gidfbb9d,public X-Google-ArrivalTime: 2002-09-13 05:18:54 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!lios!news.gweep.ca!not-for-mail From: z1001018@reg.iitb.ac.in (Mike Slackenerny) Newsgroups: rec.arts.ascii Subject: Re: [DIS] VT100 Animations!!!! Date: Fri, 13 Sep 2002 12:18:52 +0000 (UTC) Organization: http://groups.google.com/ Lines: 101 Sender: robomod@lios.aq2.gweep.ca Approved: rec-arts-ascii-moderator@gweep.ca Message-ID: <8ee6300e.0209130418.38ec86ea@posting.google.com> References: <6a9693744275ac644702e6f16af459a4_108559@mygate.mailgate.org> NNTP-Posting-Host: localhost Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: lios.aq2.gweep.ca 1031919532 28501 127.0.0.1 (13 Sep 2002 12:18:52 GMT) X-Complaints-To: usenet@lios.aq2.gweep.ca NNTP-Posting-Date: Fri, 13 Sep 2002 12:18:52 +0000 (UTC) X-Original-Date: 13 Sep 2002 05:18:25 -0700 X-Gweep-Bayesian: 0.0000 X-Gweep-Cleanmime: quoted=10% miswrapped=04% Xref: archiver1.google.com rec.arts.ascii:184 > http://www.eed.usv.ro/misc/graphics/ASCII/animation > > but i tried it last night and got "server unreachable" Hey, It works now!!! > here is something you might find of interest ... > machines, networks and servers are so much faster > these days it may lose some of its effect ... > also some VT100 emulators don't stream the data > properly and merely show the final result > but if you have a stock VT100 or VT220 ... It didn't work :( Got a lot of garbled text though. Any other suggestions? I used a script called 'slowcat' to view this on my linus terminal. For those in this group who have seen VT100 animations, please download a few from the source given above, and compile the code given below The command is bash$: cat whatever.vt | ./a.out -d 120 the '120' is the time delay in microseconds, but yopu can specify anything you like. /* slowcat - copies stuff from stdin to stdout, character by character, with delay. Copyright (c) Weyfour WWWWolf (Urpo Lankinen) 11.02.2000 Distributed under the Artistic Lisence As usual, no warranty - this is just a quick hack! This code was improved by Nitin Gupta, Aerospace Engineer, IIT Bombay, on Sept 8, 2002 $Id: slowcat.c,v 1.0 2000/02/11 00:04:44 wwwwolf Exp wwwwolf $ */ #include #include #include #include int main(int carg, char **varg) { char character; int verbose = 0; int delay = 1; /* Delay in microseconds */ /* These are needed for getopt() */ int opt,de; /* Process arguments */ while(opt != EOF) { opt = getopt(carg, varg, "d:hv?"); if(opt != EOF) { switch(opt) { case (int)'d': delay = atoi(optarg) ; /* convert optarg to int */ break; case (int)'h': case (int)'?': fprintf(stderr,"slowcat, by WWWWolf 11.02.2000\n"); fprintf(stderr,"$Id: slowcat.c,v 1.0 2000/02/11 00:04:44 wwwwolf Exp wwwwolf $\n"); fprintf(stderr,"Usage: %s [-d delay] [-h]\n", varg[0]); exit(0); break; case (int)'v': verbose = 1; break; default: break; } } } if(verbose) fprintf(stderr, "Delay: %d \265s\n", delay); /* Loop itself: get character, put character, sleep */ while(!feof(stdin)) { character = (char) getchar(); putchar(character); fflush(stdout); for(de =1;de<1000*delay;de++); // usleep(delay); } return 0; } /* Local variables: compile-command:"gcc -Wall -g slowcat.c -o slowcat" End: */