Closed GoogleCodeExporter closed 9 years ago
Thanks for reporting this error. I've confirmed that I can reproduce the
problem here.
I'd never tried using colorama from IDLE before - I've only ever run it from a
'cmd' text console window, or a text terminal on Linux.
The traceback shows that the Win32 library is refusing the set the console text
color, presumably because it does not recognize IDLE as a text console.
I don't know how to fix this, so unless I have any bright ideas, I'm
regretfully going to add 'does not work in IDLE' to the documentation, clarify
how to run colorama in a text terminal, and then mark this defect as 'will not
fix' or somesuch.
Your efforts are much appreciated, many thanks.
Original comment by tart...@gmail.com
on 15 Oct 2010 at 2:02
The problem is that IDLE reports that it is a tty, when it is not:
-------------------
IDLE 1.2.2
>>> import sys
>>> sys.stdout.isatty()
True
>>>
-------------------
If I try the same code in, for example PSPad (running a simple test.py,
capturing the output) it returns False.
Trying that on PyScripter's Python shell fails because it replaces sys.stdout
with an object that doesn't has an isatty() method.
Sort version: I agree with the "will not fix".
Original comment by oscar.le...@gmail.com
on 15 Oct 2010 at 7:57
[deleted comment]
Original comment by tart...@gmail.com
on 19 Jun 2011 at 6:48
Original issue reported on code.google.com by
emayo7...@gmail.com
on 11 Oct 2010 at 10:18