Font colors in bash

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Nathan England
Date:  
Subject: Font colors in bash
--=-Dai8ju72ljjfSERxcm6C
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

I've read many things off google and I can't get any of it to work. I've
looked everywhere in knoppix's config files and boot scripts and I can't
see anything different...

I just can't make it work. I have to be missing something somewhere.

nathan

On Thu, 2004-01-29 at 15:13, JD Austin wrote:
> > I am playing with the color schemes that knoppix uses when outputing
> > message while booting.
> >
> > CRE=3D"^M^[[K"
> > NORMAL=3D"^[[0;39m"    #Normal Color
> > RED=3D"^[[1;31m"        #Failure
> > GREEN=3D"^[[1;32m"    #Success
> > YELLOW=3D"^[[1,33m"    #Unused
> > BLUE=3D"^[[1;34m"        #System Messages
> > MAGENTA=3D"^[[1;35m"    #Description
> > CYAN=3D"^[[1;36m"        #Unused
> > WHITE=3D"^[[1;37m"    #Unused

> >
> > But I'm failing somewhere.
> > I tried
> > echo "${BLUE}Hello there.${NORMAL}"
> >
> > But, it doesn't work.
> > it comes back
> > echo "^[[1;31mHello there.^[[0;39m
> >
> > How do I make this work? Obviously I've never used ansi colors before.
>=20
> The first ^[ is the escape character. Im not sure how you'd put a chr(27=

) in
> that file without some sort of editor (nedit lets you do that); does the =

alt-#
> thing still work (forgot how that worked)?
>=20
> JD

--=20
Nathan England

Arcanum Linux !
nathan at the-arcanum.org
jabber id:

"A free society is one where it is safe to be unpopular."
--Adlai Stevenson


Registered Linux User #189789, Machine #106603
www.sincerechoice.org

--=-Dai8ju72ljjfSERxcm6C
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQBAGZFgBSK6uOjZg9gRAqVoAKDHm88hCTwBUBaKlrFlYmDoDkPGJACdFzRl
/OjkRlYgszS+UFdgh3YluCc=
=8sK8
-----END PGP SIGNATURE-----

--=-Dai8ju72ljjfSERxcm6C--