Re: your mail
From Ivor von Wolfsheim <kuj...@nunki.usc.edu>
· alt.ascii-art
· 4 Feb 1995 19:29 · View full thread
· report
On Sat, 4 Feb 1995, Coran Fisher aka The Doctor wrote: > Would you possibly explain how you go about making one line animation please? > You mentioned something about changing a line feed character to a carriage > return, how do you do that? > > Thanks! > You make a text file something like this: -----------------------------------/ cut here /------------------------------ / | \ - / | \ - -------------------------------------//------------------------------------ et cetera that has the animation in it. You then have to replace the line feed characters (0x0A) with a carraige return character (0x0D) so that the animation will print out all on one line, overstriking. The following C program will do this: -----------------------------------/ cut here /------------------------------ /* strip_linefeed.c * Usage: * strip_linefeed <infile> <outfile> * program copies infile to outfile, replacing line feed characters with * carraige return characters. */ #include <stdio.h> int main(int argc, char **argv) { int i; FILE *IN, *OUT; if(argc!=3) { printf("number of args, bozo!\n"); return(1); } IN = fopen(argv[1], "rb"); if(!IN) { printf("file error on %s\n",argv[1]); return(2); } OUT = fopen(argv[2], "wb"); if(!OUT) { printf("file error on %s\n",argv[2]); if(IN) fclose(IN); return(2); } while ((i=fgetc(IN))!=EOF) if(i!=0x0a) fputc(i, OUT); else fputc(0x0d,OUT); return(0); } -------------------------------------//------------------------------------ save the program as a seperate file named strip_linefeed.c, and compile it with: gcc strip_linefeed.c -o strip_linefeed or use whatever other c compiler is available on your system. Hope this helps. Ivor -------------------------------------------------------------- Not that it will help him, prolly. I tried fingering his address, but apperently, his sight doesn't allow outside fingering. *damn* security fascists. Ivor
Original message headers
Date: Sat, 4 Feb 1995 11:29:25 -0800 (PST) From: Ivor von Wolfsheim <kuj...@nunki.usc.edu> To: Coran Fisher aka The Doctor <dal...@holly.ColoState.EDU> Subject: Re: your mail In-Reply-To: <950...@holly.ColoState.EDU> Message-ID: <Pin...@nunki.usc.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Status: RO X-Status:
Related ASCII art in the Gallery
Explore these categories from our collection of 11,000+ artworks:
_ _ (o)(o)--. \../ ( )hjw m\/m--m'`--.
_ _
/` \/ `\_ _
\ /` \/ `\
'. .\ /
\/ '. .'
\/jgs __ . . __ (o.\ \/ /.o) \__\/\/__/ /O /==\ O\ (;O/ \/ \O;)
_______ |.-----.| || jgs || ||_ _|| `--)-(--` __[=== o]___ |:::::::::::|\ `-=========-`()
,sSSs ,SSSS_/ ,_ sS/`))\// sS//|_(_/ _, SS\\\ `""-.-'` / sSS` jgs-==-'`'-._\
___________ | _______ | | | | | | | | | | | | | | |_______| | |___________|
Make your own ASCII art
Turn images, text or 3D into ASCII, or draw your own – right in your browser.
About this message.
This message was posted publicly to the newsgroup
alt.ascii-art
in 1995 and is 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 the author? 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.