[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [nyx/master] Clear first line
commit 63f39b84c1ddadc31d9235b1350f8f57c0a7caa2
Author: Sambuddha Basu <sambuddhabasu1@xxxxxxxxx>
Date: Sat Jun 25 23:27:52 2016 -0700
Clear first line
---
nyx/panel/interpreter.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/nyx/panel/interpreter.py b/nyx/panel/interpreter.py
index 62ece1d..c60b3f8 100644
--- a/nyx/panel/interpreter.py
+++ b/nyx/panel/interpreter.py
@@ -112,9 +112,6 @@ class InterpreterPanel(panel.Panel):
def draw(self, width, height):
scroll = self._scroller.location(self._last_content_height, height)
- usage_msg = ' (enter \"/help\" for usage or a blank line to stop)' if self._is_input_mode else ""
- self.addstr(0, 0, 'Control Interpreter%s:' % usage_msg, HIGHLIGHT)
-
if self._last_content_height > height - 1:
self._x_offset = 2
self.add_scroll_bar(scroll, scroll + height, self._last_content_height, 1)
@@ -135,6 +132,10 @@ class InterpreterPanel(panel.Panel):
y += 1
+ self.addstr(0, 0, ' ' * width)
+ usage_msg = ' (enter \"/help\" for usage or a blank line to stop)' if self._is_input_mode else ""
+ self.addstr(0, 0, 'Control Interpreter%s:' % usage_msg, HIGHLIGHT)
+
new_content_height = y + scroll
if new_content_height != self._last_content_height:
self._last_content_height = new_content_height
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits