[Q] Printing color strings on stdout without using escape sequences ?

Werner Schiendl ws-news at gmx.at
Fri Nov 16 14:25:45 CET 2001


Hi,

when looking for something similar a couple of days ago, I found that there
are some such modules in The Vaults of Parnassus.
Look into User Interfaces - Text Based UI

http://www.vex.net/parnassus/apyllo.py/808292924.243256747

However, I did not dive into any of those products.

hth
Werner

"Ivan DUTKA-MALEN" <dutka at edf.fr> wrote in message
news:3BF4F588.9010500 at edf.fr...
> Hello,
>
> for my application to be a bit more friendly, I want to show some
> colored strings on the standard output but I don't want to use ugly
> escape sequence like '\033[1m;' or so...
>
> I'd prefer use a module (if one exists) that encapsulate all those
> things and that allows me to be portable on various Unix-like systems
> (especialy Linux, Solaris, HP-UX, IRIX).
> Does anyone know such a module ?
>
> For information, I tried to use curses but I think it doesn't make what
> I want in the sense that it uses the full screen and I just want to use
> the standard output stream. I may be wrong and I surely misuse it. Some
> help will be much appreciated :-)).
>
> Thanks
> Ivan
>
> --
> Ivan DUTKA-MALEN
> EDF R&D
> mailto: dutka at cli76al.der.edf.fr
> mailto: ivan.dutka-malen at edf.fr
>





More information about the Python-list mailing list