diff options
author | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-12-17 21:06:59 +0000 |
---|---|---|
committer | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-12-17 21:06:59 +0000 |
commit | acd047863cf027e3dd71381d12070bae17a59254 (patch) | |
tree | e631c40a89717e9c8317984974afbd2a4ca93f0f /src/core.py | |
parent | e07f6316099e9334fd885a2014d7aa03b8e4df14 (diff) | |
download | poezio-acd047863cf027e3dd71381d12070bae17a59254.tar.gz poezio-acd047863cf027e3dd71381d12070bae17a59254.tar.bz2 poezio-acd047863cf027e3dd71381d12070bae17a59254.tar.xz poezio-acd047863cf027e3dd71381d12070bae17a59254.zip |
^L now works
Diffstat (limited to 'src/core.py')
-rw-r--r-- | src/core.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/core.py b/src/core.py index eab885c7..770de71c 100644 --- a/src/core.py +++ b/src/core.py @@ -141,7 +141,7 @@ class Core(object): 'M-r': self.go_to_roster, 'M-z': self.go_to_previous_tab, 'M-v': self.move_separator, - '^L': self.call_for_resize, + '^L': self.full_screen_redraw, } # Add handlers @@ -504,6 +504,7 @@ class Core(object): A subscription changed, or we received a roster item after a roster request, etc """ + print(sdfsdf) for item in iq.findall('{jabber:iq:roster}query/{jabber:iq:roster}item'): jid = item.attrib['jid'] contact = roster.get_contact_by_jid(jid) @@ -525,6 +526,13 @@ class Core(object): if isinstance(self.current_tab(), tabs.RosterInfoTab): self.refresh_window() + def full_screen_redraw(self): + """ + Completely erase and redraw the screen + """ + self.stdscr.clear() + self.call_for_resize() + def call_for_resize(self): """ Starts a very short timer. If no other terminal resize |