Closed GoogleCodeExporter closed 9 years ago
Hi and thanks for your useful work on colorama.
I got the same problem with several 32 bits XP and 7 machines, with colorama 2.7
The problem seems related to pyreadline and the fact that it also uses ctypes
and GetConsoleScreenBufferInfo (and other functions of that dll) with other
signatures declared to ctypes [1].
I could get my terminal functional again by matching the signatures with the
ones in pyreadline/console/console.py. I attached the modified win32.py file.
I do not know what is the right way of using those dll functions, but as
pyreadline is more common I adapted colorama to it and not the contrary. It
would be great if pyreadline and colorama could get along nicely...
Best regards,
LF
[1] https://github.com/astropy/astropy/issues/1440
Original comment by l.fayo...@ymail.com
on 9 Jan 2014 at 5:39
Attachments:
Massive thanks for reporting all this, both the problem and your solution.
I'll have a look at the diffs, see if I can understand what's going on,
consider merging and releasing. Currently failing to find the time, but maybe
this weekend.
Original comment by tart...@gmail.com
on 10 Jan 2014 at 12:55
Original comment by tart...@gmail.com
on 10 Jan 2014 at 12:55
Issue 48 has been merged into this issue.
Original comment by tart...@gmail.com
on 13 Jan 2014 at 11:06
Googling for LP_CONSOLE_SCREEN_BUFFER_INFO type mismatch error located this
thread and LF's patch, which successfully resolves the issue for me. Thanks!
Original comment by ice.r...@gmail.com
on 17 Mar 2014 at 10:19
Isolate the win32 module from the global ctypes.windll instance. Use windll =
ctypes.LibraryLoader(ctypes.WinDLL). The module will get its own instance of
WinDLL('kernel32'), which will have its own cached function pointers.
Original comment by eryksun
on 29 Mar 2014 at 12:51
Issue 51 has been merged into this issue.
Original comment by tart...@gmail.com
on 17 Apr 2014 at 9:14
Many thanks all. After much thought and sucking of teeth, I've committed the
solution suggested relatively recently by eryksun, since that seems likely to
prevent incompatibilities with other libraries as well as the known problem
with pyreadline.
Original comment by tart...@gmail.com
on 17 Apr 2014 at 9:43
Original issue reported on code.google.com by
Con...@gmail.com
on 23 Dec 2013 at 11:42