Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet message from alt.ascii-art.animation, 21 Feb 1999.
Re: Ascii-anims
I replied
>>> 
>>> 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
>
>[][ hi... here is an alternative... which may save you some effort...
>
>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 FRAME 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<-----
Oooops!

damn ... this don't work!

the variable in the 'for' loop should be FRAME not FRAMES

... i wrote this at work during lunch and re-wrote it, without looking,
from memory ...but didn't check it here :(

fortunately no-one tried it ... else they'd bleat about it

[ps] printf will work also if its on your machine ... but its not
     included in all unix distributions

[][ guess i'll have to go back to double-checking everything again
[][ 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/21
Message-ID: <93a...@shieldwolf.demon.co.uk>#1/1
X-Deja-AN: 446851610
X-NNTP-Posting-Host: shieldwolf.demon.co.uk:193.237.26.148
References: <Pin...@sdpdec10.epfl.ch> <36B...@iNOdirect.ca> <JlY...@shieldwolf.demon.co.uk>
X-Complaints-To: abu...@demon.net
X-Trace: news.demon.co.uk 919636944 nnrp-02:23978 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