Closed GoogleCodeExporter closed 9 years ago
Same problem, fixed by changing line 98 of winterm.py to have ' ', not ord('
'); this was on version 0.2.4 [2010].
Original comment by dave.mc...@gmail.com
on 21 Feb 2012 at 1:18
Thanks for the report and the fix, people! I've been getting hold of a Windows
7 machine, and will incorporate the fix and make a new release in the next few
days.
Original comment by tart...@gmail.com
on 21 Feb 2012 at 11:45
Also reported by Lackner Kristof: k.lackner@holografika.com, who suggested the
same fix.
File "C:\Python27\lib\site-packages\colorama\ansitowin32.py", line 34, in write
self.__convertor.write(text)
File "C:\Python27\lib\site-packages\colorama\ansitowin32.py", line 115, in write
self.write_and_convert(text)
File "C:\Python27\lib\site-packages\colorama\ansitowin32.py", line 140, in write_and_convert
self.convert_ansi(*match.groups())
File "C:\Python27\lib\site-packages\colorama\ansitowin32.py", line 154, in convert_ansi
self.call_win32(command, params)
File "C:\Python27\lib\site-packages\colorama\ansitowin32.py", line 181, in call_win32
func(params, on_stderr=self.on_stderr)
File "C:\Python27\lib\site-packages\colorama\winterm.py", line 98, in erase_data
win32.FillConsoleOutputCharacter(handle, ord(' '), dw_con_size, coord_screen)
File "C:\Python27\lib\site-packages\colorama\win32.py", line 92, in FillConsoleOutputCharacter
char = TCHAR(char)
Original comment by Jonat...@rangespan.com
on 24 Jan 2013 at 5:46
Original comment by tart...@gmail.com
on 24 Jan 2013 at 5:47
I'm going to just push this change based on the 3 reports that it works. I
don't currently have a windows machine on which to test. Fingers crossed.
Thanks all.
Original comment by tart...@gmail.com
on 20 Feb 2013 at 8:02
Fix pushed. Bumped version to 0.2.5 and uploaded a new release. Yay, thanks all.
Original comment by tart...@gmail.com
on 20 Feb 2013 at 8:10
Original issue reported on code.google.com by
vaal1239@gmail.com
on 6 Jan 2012 at 12:26Attachments: