mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 22:34:23 -07:00
* usr/bin/byobu-select-session: LP: #855795
- fix broken select-session support; screen -ls exits 1
This commit is contained in:
parent
3f24ebbb22
commit
00475e665d
2 changed files with 3 additions and 1 deletions
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -9,6 +9,8 @@ byobu (4.34) unreleased; urgency=low
|
||||||
- fix regressed monochrome support
|
- fix regressed monochrome support
|
||||||
* usr/bin/byobu-janitor, usr/share/byobu/status/status:
|
* usr/bin/byobu-janitor, usr/share/byobu/status/status:
|
||||||
- proper fix for ec2 by default in cloud instances
|
- proper fix for ec2 by default in cloud instances
|
||||||
|
* usr/bin/byobu-select-session: LP: #855795
|
||||||
|
- fix broken select-session support; screen -ls exits 1
|
||||||
|
|
||||||
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 08 Sep 2011 14:26:43 -0700
|
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 08 Sep 2011 14:26:43 -0700
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ def get_sessions():
|
||||||
i = 0
|
i = 0
|
||||||
if commands.getstatusoutput("command -v screen")[0] == 0:
|
if commands.getstatusoutput("command -v screen")[0] == 0:
|
||||||
output = commands.getstatusoutput("screen -ls")
|
output = commands.getstatusoutput("screen -ls")
|
||||||
if output[0] == 0:
|
if output[0] >= 0:
|
||||||
for s in output[1].split("\n"):
|
for s in output[1].split("\n"):
|
||||||
s = re.sub(r'\s+', ' ', s)
|
s = re.sub(r'\s+', ' ', s)
|
||||||
# Ignore hidden sessions (named sessions that start with a ".")
|
# Ignore hidden sessions (named sessions that start with a ".")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue