yet better refresh

parent 9c9236eb
......@@ -472,7 +472,6 @@ class Gui(object):
A subscription changed, or we received a roster item
after a roster request, etc
"""
# debug('Roster Update: \n%s\n\n' % iq)
for item in iq.findall('{jabber:iq:roster}query/{jabber:iq:roster}item'):
jid = item.attrib['jid']
contact = self.roster.get_contact_by_jid(jid)
......@@ -587,6 +586,7 @@ class Gui(object):
"""
self.current_tab().set_color_state(theme.COLOR_TAB_CURRENT)
self.current_tab().refresh(self.tabs, self.information_buffer, self.roster)
self.doupdate()
def open_new_room(self, room, nick, focus=True):
"""
......@@ -1337,4 +1337,5 @@ class Gui(object):
self.doupdate()
def doupdate(self):
self.current_tab().just_before_refresh()
curses.doupdate()
......@@ -876,7 +876,7 @@ class Input(Win):
with g_lock:
self.clear_text()
self.addstr(self.text[self.line_pos:self.line_pos+self.width-1])
# self.win.chgat(0, self.pos, 1, curses.A_REVERSE)
self.addstr(0, self.pos, '') # WTF, this works but .move() doesn't...
self._refresh()
def refresh(self):
......@@ -891,9 +891,7 @@ class Input(Win):
"""
move the cursor at the current pos
"""
from common import debug
debug('ALLO')
self._win.move(0, self.pos)
return
class VerticalSeparator(Win):
"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment