summaryrefslogtreecommitdiff
path: root/src/gui.py
diff options
context:
space:
mode:
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: