Original Usenet thread from rec.arts.ascii, started 9 Sep 2002.
[DIS] VT100 Animations!!!!
rec.arts.ascii
· 3 messages · 9 Sep 2002 - 13 Sep 2002
Just discovered them!!! Greatmaxxx!! does anyone here have any idea how to run them in .plan files when somebody fingers you on the unix console? and any hidden resources thst any reader here knows of??? (any hidden goldmne of VT100 animations..........) please post. -- Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
Rishi Tandon writes >Just discovered them!!! >Greatmaxxx!! > >does anyone here have any idea how to run them in .plan files when >somebody fingers you on the unix console? > >and any hidden resources thst any reader here knows of??? >(any hidden goldmne of VT100 animations..........) hi ... a year or so ago i downloaded part (36 files) of the collection (about 90 files) at this location: http://www.eed.usv.ro/misc/graphics/ASCII/animation but i tried it last night and got "server unreachable" > >please post. > > 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 ... anyway here is the article in its entirety:- ........................................................................ Newsgroups: alt.sources From: p63...@mpifr-bonn.mpg.de (Dirk Muders) Subject: Re: .plan Generator for Finger Message-ID: <199...@mpifr-bonn.mpg.de> Followup-To: alt.sources.d Organization: Max Planck Institut fuer Radioastronomie References: <199...@ucl.ac.uk> Date: Mon, 9 Aug 1993 13:39:47 GMT Lines: 77 In article <199...@ucl.ac.uk> ucj...@ucl.ac.uk writes: >Somewhere i saw a .plan generator. > >You gave it the text of your .plan, and it produced a BIG file containing >ASCII (vt100 ?) codes to produce a fancy .plan for `finger'. > >ie, each letter in turn zooms through the alphabet untill it reaches its >target, like a rail-way timetable machine, &c. > >Any pointers welcome. Thanks, Jonny Some time ago I wrote the piece of code you are looking for. I called the program m(ake)plan.c. You just have to compile it via cc -O mplan.c -o mplan and then say mplan <Text> [Output file] and the <Text> will be written in the manner described above. Without an output filename it goes to stdout. And here it is: --------8<----8<----8<------ mplan.c ----->8---->8---->8----------- #include "stdio.h" main(argc,argv) int argc; char *argv[]; { int i, j, z = 0, jmax; FILE *datptr; switch(argc) { case 2: datptr = stdout; break; case 3: datptr = fopen(argv[2],"w+"); break; default: printf("Usage: mplan <Text> [Output file]\n"); exit(1); break; } jmax = strlen(argv[1]); for(i = 32; i < 128; i++) /* Loop over chars that appear in normal text */ if(z < jmax) /* Stop when all chars have reached the end */ { z = 0; for(j = 0; j < jmax; j++) if(i <= argv[1][j]) fputc(i,datptr); else { fputc(argv[1][j],datptr); z++; /* Count the chars that reached the end */ } fputc(13,datptr); /* Get back to the start of the line */ } fprintf(datptr,"\n"); fclose(datptr); } --------8<----8<----8<-------------------->8---->8---->8----------- Dirk Muders Max-Planck-Institut fuer Radioastronomie Auf dem Huegel 69 D-53121 Bonn p63...@MPIfR-Bonn.MPG.de ....................................................................... -- __ ___ ___ :::/ |_ | . ):: ::( (-| | | <::: :::\__|___|_|_\::
> 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 <stdio.h> #include <stdlib.h> #include <unistd.h> #include <getopt.h> 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: */
Related ASCII art in the Gallery
Explore these categories from our collection of 11,000+ artworks:
_ _
/` \/ `\_ _
\ /` \/ `\
'. .\ /
\/ '. .'
\/jgs __ . . __ (o.\ \/ /.o) \__\/\/__/ /O /==\ O\ (;O/ \/ \O;)
_______ |.-----.| || jgs || ||_ _|| `--)-(--` __[=== o]___ |:::::::::::|\ `-=========-`()
,sSSs ,SSSS_/ ,_ sS/`))\// sS//|_(_/ _, SS\\\ `""-.-'` / sSS` jgs-==-'`'-._\
___________ | _______ | | | | | | | | | | | | | | |_______| | |___________|
//O\\
Make your own ASCII art
Turn images, text or 3D into ASCII, or draw your own – right in your browser.
About this thread.
These messages were posted publicly to the newsgroup
rec.arts.ascii
in 2002 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.