commit 2b3a9d7f2fc921ccd01dc43b641e98cb056ca799 Author: Damian Johnson atagar@torproject.org Date: Sun Oct 2 19:56:41 2011 -0700
fix: clearing contents to force curses to refresh
Evidently it isn't enough for panels to clear their contents, so also requesting a clear of the uppermost stdscr. Fix suggested by np... https://trac.torproject.org/projects/tor/ticket/2830#comment:9 --- src/cli/controller.py | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/cli/controller.py b/src/cli/controller.py index 762f955..aebc6f3 100644 --- a/src/cli/controller.py +++ b/src/cli/controller.py @@ -341,6 +341,11 @@ class Controller: panelImpl.setTop(occupiedContent) occupiedContent += panelImpl.getHeight()
+ # apparently curses may cache display contents unless we explicitely + # request a redraw here... + # https://trac.torproject.org/projects/tor/ticket/2830#comment:9 + if force: self._screen.clear() + for panelImpl in displayPanels: panelImpl.redraw(force)
tor-commits@lists.torproject.org