home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / ibm / pc / misc / 15700 < prev    next >
Encoding:
Text File  |  1992-12-11  |  1.7 KB  |  49 lines

  1. Xref: sparky comp.sys.ibm.pc.misc:15700 comp.graphics:12792 comp.binaries.ibm.pc.wanted:7839
  2. Path: sparky!uunet!gumby!destroyer!cs.ubc.ca!chaplin.cs.ubc.ca!not-for-mail
  3. From: samuel@cs.ubc.ca (Stephen Samuel)
  4. Newsgroups: comp.sys.ibm.pc.misc,comp.graphics,comp.binaries.ibm.pc.wanted
  5. Subject: Re: Bambi Meets Godzilla?
  6. Date: 11 Dec 1992 13:04:03 -0800
  7. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  8. Lines: 36
  9. Message-ID: <1gavo3INNsft@chaplin.cs.ubc.ca>
  10. References: <chuck-071292084518@choffman.gte.com> <1g023jINNdu6@transfer.stratus.com> <Bywpqu.DuF@constellation.ecn.uoknor.edu> <jejensen.723786700@cunews> <1992Dec8.175854.9868@mnemosyne.cs.du.edu>
  11. NNTP-Posting-Host: chaplin.cs.ubc.ca
  12.  
  13. mrosen@nyx.cs.du.edu (Michael Rosen) writes:
  14.  
  15. >jejensen@alfred.carleton.ca (John Jensen) writes:
  16. >>I think you are talking about the ANSI animation version -- it's quite
  17. >>funny.  An archie search revealed it to be in:
  18. >>ra.msstate.edu: /pub/docs/words-l/Funnies/bambi1.uu
  19. >How do you view this?  It decodes out to a .ANI file.
  20.  
  21. Just copy it to the screen.  If that's too fast, then you just need
  22. to write a program to do a slow copy. 
  23.  
  24. __slowcat.c___________________
  25.  
  26. /* reads standin, writes standout SLOWLY */
  27. #define PACKET 12      /* how many bytes to copy before a sleep */
  28. #define SLEEPTIME 3      /* how long to sleep after a packet */
  29.               /* for sginap, this is in 1/100ths of a second */
  30. #define SLEEPPROG sginap  /* SGIs only redefine this for your box */
  31.               /* regular sleep is just too slow */
  32.  
  33. main(){
  34.  
  35.     char buffer[PACKET];
  36.     int len;
  37.  
  38.     while( (len=read(0,buffer,PACKET))>0 ){
  39.         write(1,buffer,len);
  40.         SLEEPPROG(SLEEPTIME);
  41.     }
  42. }
  43.  
  44.  
  45.  
  46. -- 
  47. Stephen Samuel         (604)822-9248        samuel@cs.ubc.ca
  48. The first prerequisite to winning is playing the game.
  49.