Announcing colour-text and colour-print

Gisle Vanem gisle.vanem at gmail.com
Tue Oct 1 05:09:22 EDT 2019


Barry Scott wrote:

> Here is an example:
> 
> from colour_text import ColourText
> ct = ColourText()
> ct.initTerminal()
> 
> print( ct( "The next section is in green: <>green example<>." ) )

Looking at the sources, it seems 'win32' should be
supported. But no; with the above example:
   c:\>py -3 example.py
   The next section is in green: ←[32mexample←[m.

No colours, just the pesky SGI-codes.

BTW. it fails completely in Python 2.7.

-- 
--gv



More information about the Python-list mailing list