[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [arm/release] Forcing redraw when user presses ctrl+L
commit 38c2f3662ac8858fabc54a5826c1af601590c9b0
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date: Mon Aug 8 08:50:15 2011 -0700
Forcing redraw when user presses ctrl+L
Triggering a manual redraw when the user presses ctrl+L, which is expected of
terminal applications. This addresses:
https://trac.torproject.org/projects/tor/ticket/2830
---
src/cli/controller.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/cli/controller.py b/src/cli/controller.py
index d2c9d73..8b87b1d 100644
--- a/src/cli/controller.py
+++ b/src/cli/controller.py
@@ -765,6 +765,9 @@ def drawTorMonitor(stdscr, startTime):
overrideKey = cli.popups.showHelpPopup()
elif key == ord('w') or key == ord('W'):
cli.wizard.showWizard()
+ elif key == ord('l') - 96:
+ # force redraw when ctrl+l is pressed
+ control.redraw()
else:
for panelImpl in displayPanels:
isKeystrokeConsumed = panelImpl.handleKey(key)
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits