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