From 8aede04f5b82398d69468d1322151caa805ad15e Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Wed, 16 Feb 2011 02:54:02 +0100 Subject: Fix the info_win of the InfoTab (anon mode) --- src/core.py | 2 +- src/tabs.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core.py b/src/core.py index 998cd05d..88f3fd07 100644 --- a/src/core.py +++ b/src/core.py @@ -684,7 +684,7 @@ class Core(object): """ main loop waiting for the user to press a key """ - curses.ungetch('\n') # FIXME + curses.ungetch(0) # FIXME while self.running: char = read_char(self.stdscr) # search for keyboard shortcut diff --git a/src/tabs.py b/src/tabs.py index 209649ac..3d28ace3 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -269,13 +269,14 @@ class TabWithInfoWin(Tab): del self.info_win Tab.__del__(self) -class InfoTab(ChatTab): +class InfoTab(ChatTab, TabWithInfoWin): """ The information tab, used to display global informations when using a anonymous account """ def __init__(self, core): Tab.__init__(self, core) + TabWithInfoWin.__init__(self) self.tab_win = windows.GlobalInfoBar() self.input = windows.Input() self.name = "Info" -- cgit v1.2.3