[Tutor] Dynamic change of dictionaries

Marc marcolinux@linuxbr.com.br
Thu, 20 Jun 2002 11:46:02 -0300


alan.gauld@bt.com (alan.gauld@bt.com) wrote:

> > $ python
> > >>> red='\\033[1;31m'
> 
> I don't thinbk you need the double \
> That says send the '\' character to the terminal. If you use 
> a single '\' it should send ESCAPE(\033) which is what I 
> assume should happen...

Thanks Alan!
Worked very well. Now I have a full rainbow to play with :)

> But I'm guessing, terminal control under *nix is frought 
> with difficulties. If I knew more aboit termcap maybe theres 
> a general way to do it there but I don't... I suspect 
> ncurses may have ways and means too.

You really hate *nix, dont u ? :)
No problem, all I need is to change color in some lines, linux only.
Your tip did the trick.
Thank you.

-- 
I SeE NeRD pEoPle.
.:: MarcoLinux ::.