Commit dea65c34 authored by Bram Schoenmakers's avatar Bram Schoenmakers

Print a message on Ctrl-C instead of exiting column mode

parent 6faf0ded
......@@ -659,7 +659,11 @@ class UIApplication(CLIApplicationBase):
# make sure that the first column is focused on startup
self.columns.focus_position = 0
self.mainloop.run()
while True:
try:
self.mainloop.run()
except KeyboardInterrupt:
self._print_to_console("Use the 'quit' command to exit topydo.")
if __name__ == '__main__':
UIApplication().run()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment