diff options
author | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-01-31 01:22:39 +0000 |
---|---|---|
committer | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-01-31 01:22:39 +0000 |
commit | a3ee784d159dff5bc0190b1df2441fb705dea312 (patch) | |
tree | bfc4b75395fcf14c977cc8c2150694ae73b98958 /src/gui.py | |
parent | e273c57235c6007de13fa2fccf757e06c70d43dd (diff) | |
download | poezio-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.py | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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: |