summaryrefslogtreecommitdiff
path: root/src/poezio.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2014-07-31 04:45:02 +0200
committerFlorent Le Coz <louiz@louiz.org>2014-07-31 04:45:02 +0200
commit55daf9d49df4a0e0774b27acd33735abf80f80dd (patch)
tree334987b1e41d973d1a6a7c7000271446daa58237 /src/poezio.py
parent0da967850dc24a69d4e521484cc85691ab31b167 (diff)
downloadpoezio-55daf9d49df4a0e0774b27acd33735abf80f80dd.tar.gz
poezio-55daf9d49df4a0e0774b27acd33735abf80f80dd.tar.bz2
poezio-55daf9d49df4a0e0774b27acd33735abf80f80dd.tar.xz
poezio-55daf9d49df4a0e0774b27acd33735abf80f80dd.zip
Make the resize work, using an ugly workaround
It seems efficient (more than the curses.endwin(); stdscr.refresh() stuf, which is slow and really really ugly) and it doesn't break my lovely main loop, so it’s all good (except that it uses shutil…)
Diffstat (limited to 'src/poezio.py')
-rw-r--r--src/poezio.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/poezio.py b/src/poezio.py
index 96445db2..68acae10 100644
--- a/src/poezio.py
+++ b/src/poezio.py
@@ -61,7 +61,9 @@ def main():
# the asyncio logger will not follow our configuration and won't write
# the tracebacks in the correct file, etc
import asyncio
+
asyncio.get_event_loop().add_reader(sys.stdin, cocore.on_input_readable)
+ asyncio.get_event_loop().add_signal_handler(signal.SIGWINCH, cocore.sigwinch_handler)
cocore.xmpp.start()
asyncio.get_event_loop().run_forever()
# We reach this point only when loop.stop() is called