summaryrefslogtreecommitdiff
path: root/src/gui.py
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-01-31 01:22:39 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-01-31 01:22:39 +0000
commita3ee784d159dff5bc0190b1df2441fb705dea312 (patch)
treebfc4b75395fcf14c977cc8c2150694ae73b98958 /src/gui.py
parente273c57235c6007de13fa2fccf757e06c70d43dd (diff)
downloadpoezio-a3ee784d159dff5bc0190b1df2441fb705dea312.tar.gz
poezio-a3ee784d159dff5bc0190b1df2441fb705dea312.tar.bz2
poezio-a3ee784d159dff5bc0190b1df2441fb705dea312.tar.xz
poezio-a3ee784d159dff5bc0190b1df2441fb705dea312.zip
fixed #1107
Diffstat (limited to 'src/gui.py')
-rw-r--r--src/gui.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gui.py b/src/gui.py
index 3f6de323..f24cd444 100644
--- a/src/gui.py
+++ b/src/gui.py
@@ -198,11 +198,18 @@ class Gui(object):
def main_loop(self, stdscr):
while 1:
curses.doupdate()
- key = stdscr.getkey()
+ try:
+ key = stdscr.getkey()
+ except:
+ self.window.resize(stdscr)
+ self.window.refresh(self.current_room())
# print key
# sys.exit()
if str(key) in self.key_func.keys():
self.key_func[key]()
+ elif str(key) == 'KEY_RESIZE':
+ self.window.resize(stdscr)
+ self.window.refresh(self.current_room())
elif len(key) >= 4:
continue
elif ord(key) == 10: