> On 1 Oct 2019, at 10:12, Gisle Vanem <gisle.va...@gmail.com> wrote: > > 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.
That are two posibility. 1. You did not call initTerminal 2. You are on an old version of windows that does not understand SGI. Barry > > No colours, just the pesky SGI-codes. > > BTW. it fails completely in Python 2.7. > > -- > --gv > -- > https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list