Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet message from alt.ascii-art.animation, 5 Feb 1999.
Re: Ascii-anims
 llizard <lli...@iNOdirect.ca> writes
>Fabien Wernly <wer...@sdpdec10.epfl.ch> wrote:
>> 
>> Hi!
>> 
>> As I'm new to this group, here's some questions:
>> 
>> I've seen lots of sites with javascript- ascii anims.
>> 
>> I'm looking for ascii anims that can run in a unix-shell i.e. that use
>> escape codes - is that what we're talking about here?
>> 
>> Is it possible to convert java-asc-anims into shell-scripts (using printf)
>> ?
>> 
>> Fabien Wernli
>> --
>> email: wer...@dpmail.epfl.ch
>> WWW  : http://come.to/fab
>> --
>
>You would have to remove extra \ from the JavascriptASCIIanimations but
>otherwise I can't see that there would be a huge problem in converting
>them. You would copy and paste the frames, remove one \ for every two
>you find and remove all \r\n"+ and beginning ".
>

[][ hi... here is an alternative... which may save you some effort...

          if you use 'echo' in a unix shell script the escape char '\'
          will need to be 'escaped' thus '\\' and also some other
          shell-command-translation chars such as ` and " and $
      ... and remove the \r\n+ also

>So the frames for this simple bird animation
>
>"              \r\n"+
>"  \<\")   \r\n"+
>"   ( \>\\ \r\n"+
>"    \" \\\\   \r\n"+
>"       \\  ejm\r",
>
>"              \r\n"+
>"  \>\")   \r\n"+
>"   ( \>\\ \r\n"+
>"    \" \\\\   \r\n"+
>"       \\  ejm\r"
>
>would become:
>
>               
>   <")   
>    ( >\ 
>     " \\  
>        \  ejm
>
>            
>   >")   
>    ( >\ 
>     " \\   
>        \  ejm
>
>I hope that helps.

a simple anim-projector ... (unix terminal-independent code)

 o - tested with Bourne shell on Solaris
 o - should also work using Korn shell or Bash
 o - requires: tput
 o - escapes: \\ \$ \" \`

--8<-----cut-here-----8<-----
#!/bin/sh
#
# birdy - ejm
# script - cjr
#
CLEAR=`tput clear` # clear screen and home cursor
CIVIS=`tput civis` # make cursor invisible
CNORM=`tput cnorm` # make cursor normal (undo civis)
echo $CIVIS
for LOOPS in 1 2 3 4 5 6 7 8 9
do
  for FRAMES in 1 2
  do
    echo $CLEAR
    case $FRAME in
      1) echo " "
         echo "  <\")"
         echo "   ( >\\"
         echo "    \" \\\\"
         echo "       \\  ejm"
         ;;
      2) echo " "
         echo "  >\")"
         echo "   ( >\\"
         echo "    \" \\\\"
         echo "       \\  ejm"
         ;;
    esac
    x=2 ; #### delay loop (increase=slow)
    while [ $x -gt 0 ]
    do
         x=`expr $x - 1`
    done
  done
done
echo $CNORM
#exit
--8<-----cut-here-----8<-----

>       ___                        cq547@freene+.+oron+o.on.ca
>     _/   |    ,^%---                         llizard aka ejm
>    |_____|  __<_ \  Dejanews is so handy!
>      --- ==   >/
>    [_____]  __>,^          ASCII-ar+, ASCII & gif anima+ions
>  ejm|   |  //| |        www.geocities.com/SoHo/Studios/9334/

fanx for supplying the pics llizard ... makes it short and sweet

also the VT.CSI info ...

enjoy

[][ see yuz
[][ colin
-- 
. /\_/\   ( () |_ | |\|   _/   |? .\ |\| |) .\ |_ |_
:( a a(   CJRandall http://www.shieldwolf.demon.co.uk
' \___")  <tHISsIGiStHEoNLYpROMOmYwEBsITEgETSaNYWAY:>

Original message headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fd588,2292dba297635d44
X-Google-Attributes: gidfd588,public
From: CJRandall <col...@shieldwolf.demon.co.uk>
Subject: Re: Ascii-anims
Date: 1999/02/05
Message-ID: <JlY...@shieldwolf.demon.co.uk>#1/1
X-Deja-AN: 441086979
X-NNTP-Posting-Host: shieldwolf.demon.co.uk:193.237.26.148
References: <Pin...@sdpdec10.epfl.ch> <36B...@iNOdirect.ca>
X-Complaints-To: abu...@demon.net
X-Trace: news.demon.co.uk 918241413 nnrp-09:11761 NO-IDENT shieldwolf.demon.co.uk:193.237.26.148
Organization: me? organised?
MIME-Version: 1.0
Newsgroups: alt.ascii-art.animation
About this message. This message was posted publicly to the newsgroup alt.ascii-art.animation in 1999 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.

Help classify this post