John Powell wrote: > I have noticed something odd in the new environment I am working in and > thought I would ask if this was a known issue before I start digging deeper. > > When I refresh the screen using 'clear' and 'draw' before the screen is > cleared a '0' character is printed in the lower left corner of the > screen shifting the screen up a character. This results in a 'jittery' > redraw that is quite ugly/annoying. > > I don't see the issue when running in a utf8 environment however > unfortunately the environment I must work in is non-utf8. > > Ring any bells?
It might be related to setting the G1 character set which has the escape sequence "^[)0" if it's not recognised by your terminal it would cause that problem. Try the attached patch and let me know if it solves the screen scrolling issue. Ian
Index: urwid/raw_display.py =================================================================== --- urwid/raw_display.py (revision 136) +++ urwid/raw_display.py (working copy) @@ -550,6 +550,7 @@ try: if util._use_dec_special: sys.stdout.write( + escape.CURSOR_HOME + escape.DESIGNATE_G1_SPECIAL) sys.stdout.flush() self.setup_G1 = False
_______________________________________________ Urwid mailing list [email protected] http://lists.excess.org/mailman/listinfo/urwid
