Ascii-anims
Νήμα μηνυμάτων · created 1999-02-03 · last edited 2026-11-22 · Γλώσσα τεκμηρίου: Αγγλικά
Πηγή: asciiart.eu
Ομάδα συζήτησης:
alt.ascii-art.animation
February 1999: a new reader finds only JavaScript animations on the web and asks for escape-code animations for a Unix shell; llizard answers with instructions found in DejaNews (1996). By 1999 knowledge about VT animation comes from the archives.
Quoted in the article:
alt.ascii-art.animation · 5 posts · 1999-02-03 – 1999-02-21
Fabien Wernly <wer...@sdpdec10.epfl.ch> ·
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 --
Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fd588,2292dba297635d44,start X-Google-Attributes: gidfd588,public From: Fabien Wernly <wer...@sdpdec10.epfl.ch> Subject: Ascii-anims Date: 1999/02/03 Message-ID: <Pin...@sdpdec10.epfl.ch>#1/1 X-Deja-AN: 440261943 X-Trace: 3 Feb 1999 19:09:54 +0100, sdpdec10.epfl.ch Organization: EPFL Content-Type: TEXT/PLAIN; charset=US-ASCII MIME-Version: 1.0 Newsgroups: alt.ascii-art.animation
llizard <lli...@iNOdirect.ca> ·
In article <Pin...@sdpdec10.epfl.ch>,
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 ".
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 know very little about ascii animations that use escape codes but here
is what I found:
--------------from DejaNews--------------------------
Author: Andrew L. Fish
Date: 1996/01/25
Forum: alt.ascii-art.animation
First you have to have an understanding of escape codes. These are the
essential part of animations. Without them, your animations won't work.
To create the actual "escape" character varies with different systems.
The
ones I know are:
UNIX (vi editor) : ctrl-v , then press the "esc" key (in insert mode)
VAX (eve editor) : ctrl-v , then press the "esc" key
MSDOS editor : ctrl-p , then press the "esc" key
after you have the initial character, there are several codes you can
enter to
manipulate the text and cursor. Here is a list of the codes that I
know.
These are to directly follow the "escape" character. Also note that in
an
animation every code must have a preceding "escape" character.
(this list was compiled by someone else...not me...but here it is)
Note that the case of the characters after the [ is important. That
is,
[4a won't move the cursor, and [1;20R won't set any scroll regions)
(from the vt220 reference book)
Random Cursor Access on VT220 terminals.
[xA move up x lines, same col.
[xB move down x lines, same col.
[xC move right x columns, same line.
[xD move left x columns, same line.
E locates at first spot next line.
[x;yH locates at row,col (x,y).
[xJ erases cursor pos to end of screen. x<>0,1,2
[x;0J erases cursor pos to end of screen.
[x;1J erases beg. of screen to and including cursor pos.
[x;2J erases entire screen.
[xK erases cursor pos to end of line. x<> 0,1,2
[x;0K erases cursor pos to end of line.
[x;1K erases beg. of line to and including cursor pos.
[x;2K erases entire current line.
[xX erases cursor pos and next x chars.
[t;br sets lines from t to b as a scroll region.
[r turns off scroll region.
Character Attributes on VT220 terminals.
[0m All attributes off
[1m Intensity only on
[4m Underscore only on
[5m Blinking only on
[7m Reverse only on
[22m Intensity only off
[24m Underscore only off
[25m Blinking only off
[27m Reverse only off
To turn on several things at once, separate them by semicolons. eg:
[22;7m
turns intensity off and reverse video on at the same time, but will not
affect other attributes.
Single Height letters
#5string prints string in single width.
#6string prints string in double width.
#3topstring prints top half of double-height string*
#4botstring prints bot half of double-height string*
*Top and bottom strings must be identical.
***************************************
now back to me.....here some I'd like to add.....
** COLORS (my personal favorite) ***
[3#m (where "#" is a number from 0 - 7) This changes the TEXT color
[4#m (where "#" is a number from 0 - 7) This changes the BACKGROUND
colors
Colors:
Foreground Background
30 black 40 black
31 red 41 red
32 green 42 green
33 yellow 43 yellow
34 blue 44 blue
35 magenta 45 magenta
36 cyan 46 cyan
37 white 47 white
----------------------------------------------
Finally, after making the animation you must know how to view it.
(replace "fiename.vt" with the animation name)
UNIX: cat filename.vt
VAX: type filename.vt
DOS: type filename.vt
NOTE: In DOS it is required that ansi.sys is loaded with the
command:
DEVICE = C:\DOS\ANSI.SYS
in your CONFIG.SYS file.
...........................END
I hope that helps.
NOTE: I do not pick up my mail from the idirect address that you
see. If you are e-mailing me and hit the reply button, add an "e"
to "freent"; its absense is to stop the torment of automatic mailers.
--
___ 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/
Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fd588,2292dba297635d44 X-Google-Attributes: gidfd588,public From: llizard <lli...@iNOdirect.ca> Subject: Re: Ascii-anims Date: 1999/02/04 Message-ID: <36B...@iNOdirect.ca> X-Deja-AN: 440572649 Content-Transfer-Encoding: 7bit References: <Pin...@sdpdec10.epfl.ch> Content-Type: text/plain; charset=us-ascii Organization: Canada; zone 6A (or is it 5b?) MIME-Version: 1.0 Reply-To: cq5...@freent.toronto.on.ca Newsgroups: alt.ascii-art.animation
llizard <lli...@iNOdirect.ca> ·
llizard wrote: > > In article <Pin...@sdpdec10.epfl.ch>, > 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 [snip] > _/ | ,^%--- > |_____| __<_ \ Dejanews is so handy! It just occurred to me that if you have more questions, try going to DejaNews Power Search and search "R L Samuell" in "alt.ascii-art.animation" NOTE: I do not pick up my mail from the idirect address that you see. If you are e-mailing me and hit the reply button, add an "e" to "freent"; its absense is to stop the torment of automatic mailers. -- llizard aka ejm cq547@freene+.+oron+o.on.ca ,^ ASCII-ar+, ASCII and gif anima+ions ===%^^^^^^^^^^^^ http://www.geocities.com/SoHo/Studios/9334/ " "
Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fd588,2292dba297635d44 X-Google-Attributes: gidfd588,public From: llizard <lli...@iNOdirect.ca> Subject: Re: Ascii-anims Date: 1999/02/04 Message-ID: <36B...@iNOdirect.ca>#1/1 X-Deja-AN: 440574715 Content-Transfer-Encoding: 7bit References: <Pin...@sdpdec10.epfl.ch> <36B...@iNOdirect.ca> Content-Type: text/plain; charset=us-ascii Organization: Canada; zone 6A (or is it 5b?) MIME-Version: 1.0 Reply-To: cq5...@freent.toronto.on.ca Newsgroups: alt.ascii-art.animation
CJRandall <col...@shieldwolf.demon.co.uk> ·
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:>
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
CJRandall <col...@shieldwolf.demon.co.uk> ·
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:>
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
Πηγή: asciiart.eu
Τα μηνύματα, και τα έργα που περιέχουν, ανήκουν στους δημιουργούς τους και δημοσιεύονται εδώ ως αρχείο. Αν είστε ένας από αυτούς και θέλετε διόρθωση ή αφαίρεση, γράψτε μου.
| Διαθέσιμα τεκμήρια | size | download | |
|---|---|---|---|
| t444830268c.json (json)mail-usenet-thread 0.6αντίγραφο στο αρχείο, δεν διανέμεται | 57K | – | |