[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: FWD: Debian Swirl ascii-art



On Tue, 10 Jul 2001, Francois Gouget wrote:
> 
> On Tue, 10 Jul 2001, Brent Verner wrote:
> 
> > On 09 Jul 2001 at 21:34 (-0700), Francois Gouget wrote:
> > | On 9 Jul 2001, Pawel Wiecek wrote:
> > | 
> > | > On Jul 9, 10:41am, Arthur Korn wrote:
> > | > > And now with colour:
> > | > 
> > | > Hi. I prefer it to be colored like this:
> > | > 
> > | >         _,met$$$$$gg.
> > | [...]
> > | 
> > |    Sorry to come in with a stupid question: how would one go about
> > | displaying this in color from a shell script?
> > |    I seem to remember doing this once but I just cannot remember now.
> > 
> > echo -e "        _,met\$\$\$\$\$gg."
> > 
> >   b
> 
>    Hmmm, there must be something more:
> 
> $ echo -e "^[[31m        _,met\$\$\$\$\$gg."
> ^[[31m        _,met$$$$$gg.
> $ /bin/echo -e "^[[31m        _,met\$\$\$\$\$gg."
> ^[[31m        _,met$$$$$gg.
> $ echo $TERM
> xterm
> 
>    Same thing on the console. I know "^[" represents an escape character
> but all I have is '^' followed by '['. I doubt echo supposed to pick up
> on it and convert it to an escape character. I also tried on the console
> (TERM=linux) but same thing there.
>    Bouuuh, I want nice pictures tooo ;-)
> 
cat debian-swirl | sed s/\\^\\[/(control-v)(control-[)/g 
>debian-swirl.color



Reply to: