[Tutor] Dynamic change of dictionaries
alan.gauld@bt.com
alan.gauld@bt.com
Thu, 20 Jun 2002 13:33:13 +0100
> the color of terminal with codes?
> I've tried (from /etc/rc.d/functions):
> (SETCOLOR_FAILURE="echo -en \\033[1;31m")
>
> $ 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...
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.
Alan G.