mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 06:23:19 -07:00
handle ctrl-c bail-out of select-session, LP: #602753
This commit is contained in:
parent
bbdc1e831a
commit
e46e3ecbac
2 changed files with 4 additions and 0 deletions
1
debian/changelog
vendored
1
debian/changelog
vendored
|
@ -3,6 +3,7 @@ byobu (2.82) unreleased; urgency=low
|
|||
* usr/bin/byobu-select-session:
|
||||
- save a few forks, use regexes for screen -ls processing
|
||||
- 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
|
||||
|
||||
|
|
|
@ -54,6 +54,9 @@ if i > 1:
|
|||
tries += 1
|
||||
choice = ""
|
||||
sys.stderr.write("\nERROR: Invalid input\n");
|
||||
except KeyboardInterrupt:
|
||||
print
|
||||
sys.exit(0)
|
||||
except:
|
||||
if choice == "":
|
||||
choice = 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue