diff --git a/lslsh.py b/lslsh.py index 5b450f9..a01bae1 100644 --- a/lslsh.py +++ b/lslsh.py @@ -84,6 +84,9 @@ class Shell(cmd.Cmd): def run(): shell = Shell() - shell.cmdloop() + try: + shell.cmdloop() + except KeyboardInterrupt: + shell.do_exit(None) run()