From 52d4e2b93b26d0676451f15e476e651ef3afa490 Mon Sep 17 00:00:00 2001 From: Guillaume Chazarain Date: Tue, 14 Dec 2010 00:00:52 +0100 Subject: [PATCH] Back to addstr because of: http://marc.info/?l=ncurses-bug&m=125233342917443&w=3 insstr (from ncursesw) UTF-8 issue => The cursor position was not updated for wide characters by insstr() --- iotop/ui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iotop/ui.py b/iotop/ui.py index dab0b03..32397fa 100644 --- a/iotop/ui.py +++ b/iotop/ui.py @@ -446,7 +446,7 @@ class IOTopUI(object): num_lines = min(len(lines), self.height - 2 - int(bool(status_msg))) for i in xrange(num_lines): try: - self.win.insstr(i + 2, 0, lines[i].encode('utf-8')) + self.win.addstr(i + 2, 0, lines[i].encode('utf-8')) except curses.error: exc_type, value, traceback = sys.exc_info() value = '%s win:%s i:%d line:%s' % \ -- 2.11.4.GIT