pyreadline: patch from pan to remove cursor flickering when inputting chinese characters

This commit is contained in:
jstenar
2007-11-20 18:59:58 +00:00
parent b1bae5d69f
commit a4f98cccb2
5 changed files with 20 additions and 11 deletions
-7
View File
@@ -359,13 +359,6 @@ class Console(object):
log(unicode(attr))
log(unicode(chunk))
self.SetConsoleTextAttribute(self.hout, attr.winattr)
x,y = self.pos()
x1,y1 = self.size()
if y == y1 - 1:
self.scroll_window(-1)
self.scroll((0,0,x1,y1),0,-1)
self.pos(x,y-1)
self.WriteConsoleW(self.hout, chunk, len(chunk), byref(junk), None)
return n