summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-02-02 01:49:54 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-02-02 01:49:54 +0000
commit5212eb4abb5d692114ecdfca05feb74d387855df (patch)
tree6539941ed0d1c36f42acbb59c8d678c2dafd7d85 /src
parent25d3ab27e730506262cc2d7bb842e8310ef1f5f4 (diff)
downloadpoezio-5212eb4abb5d692114ecdfca05feb74d387855df.tar.gz
poezio-5212eb4abb5d692114ecdfca05feb74d387855df.tar.bz2
poezio-5212eb4abb5d692114ecdfca05feb74d387855df.tar.xz
poezio-5212eb4abb5d692114ecdfca05feb74d387855df.zip
Do not redraw the Vline at each user_list refresh
Diffstat (limited to 'src')
-rw-r--r--src/window.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/window.py b/src/window.py
index 96ff4f52..a1d59f70 100644
--- a/src/window.py
+++ b/src/window.py
@@ -43,9 +43,6 @@ class UserList(Win):
def refresh(self, users):
self.win.clear()
- self.win.attron(curses.color_pair(2))
- self.win.vline(0, 0, curses.ACS_VLINE, self.height)
- self.win.attroff(curses.color_pair(2))
y = 0
for user in users:
try:
@@ -312,8 +309,10 @@ class Window(object):
terminal
"""
self.size = (self.height, self.width) = stdscr.getmaxyx()
-
- self.user_win = UserList(self.height-3, self.width/10, 1, 9*(self.width/10), stdscr)
+ stdscr.attron(curses.color_pair(2))
+ stdscr.vline(1, 9*(self.width/10), curses.ACS_VLINE, self.height-2)
+ stdscr.attroff(curses.color_pair(2))
+ self.user_win = UserList(self.height-3, (self.width/10)-1, 1, 9*(self.width/10)+1, stdscr)
self.topic_win = Info(1, self.width, 0, 0, stdscr)
self.info_win = Info(1, self.width, self.height-2, 0, stdscr)
self.text_win = TextWin(self.height-3, (self.width/10)*9, 1, 0, stdscr)
@@ -324,7 +323,10 @@ class Window(object):
Resize the whole tabe. i.e. all its sub-windows
"""
self.size = (self.height, self.width) = stdscr.getmaxyx()
- self.user_win.resize(self.height-3, self.width/10, 1, 9*(self.width/10), stdscr)
+ stdscr.attron(curses.color_pair(2))
+ stdscr.vline(1, 9*(self.width/10), curses.ACS_VLINE, self.height-2)
+ stdscr.attroff(curses.color_pair(2))
+ self.user_win.resize(self.height-3, (self.width/10)-1, 1, 9*(self.width/10)+1, stdscr)
self.topic_win.resize(1, self.width, 0, 0, stdscr)
self.info_win.resize(1, self.width, self.height-2, 0, stdscr)
self.text_win.resize(self.height-3, (self.width/10)*9, 1, 0, stdscr)