summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-02-16 02:54:02 +0100
committerFlorent Le Coz <louiz@louiz.org>2011-02-16 02:54:02 +0100
commit8aede04f5b82398d69468d1322151caa805ad15e (patch)
tree1b2d50c7128258f2249575f6d1eb9163f84d3907 /src
parentfd05c7d707dbb4ba203b067cc98be60b01cf4d27 (diff)
downloadpoezio-8aede04f5b82398d69468d1322151caa805ad15e.tar.gz
poezio-8aede04f5b82398d69468d1322151caa805ad15e.tar.bz2
poezio-8aede04f5b82398d69468d1322151caa805ad15e.tar.xz
poezio-8aede04f5b82398d69468d1322151caa805ad15e.zip
Fix the info_win of the InfoTab (anon mode)
Diffstat (limited to 'src')
-rw-r--r--src/core.py2
-rw-r--r--src/tabs.py3
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"