handle ctrl-c bail-out of select-session, LP: #602753

This commit is contained in:
Dustin Kirkland 2010-07-07 11:33:37 -04:00
commit e46e3ecbac
2 changed files with 4 additions and 0 deletions

1
debian/changelog vendored
View file

@ -3,6 +3,7 @@ byobu (2.82) unreleased; urgency=low
* usr/bin/byobu-select-session: * usr/bin/byobu-select-session:
- save a few forks, use regexes for screen -ls processing - save a few forks, use regexes for screen -ls processing
- fix select-session code, LP: #602750 - fix select-session code, LP: #602750
- handle ctrl-c bail-out of select-session, LP: #602753
-- Dustin Kirkland <kirkland@ubuntu.com> Fri, 02 Jul 2010 10:02:18 -0500 -- Dustin Kirkland <kirkland@ubuntu.com> Fri, 02 Jul 2010 10:02:18 -0500

View file

@ -54,6 +54,9 @@ if i > 1:
tries += 1 tries += 1
choice = "" choice = ""
sys.stderr.write("\nERROR: Invalid input\n"); sys.stderr.write("\nERROR: Invalid input\n");
except KeyboardInterrupt:
print
sys.exit(0)
except: except:
if choice == "": if choice == "":
choice = 1 choice = 1