* usr/bin/byobu-select-session:

- fix 256-color tmux reattaches
This commit is contained in:
Dustin Kirkland 2011-11-16 15:05:02 -06:00
commit 8db314433d
2 changed files with 4 additions and 2 deletions

2
debian/changelog vendored
View file

@ -2,6 +2,8 @@ byobu (4.49) unreleased; urgency=low
* usr/bin/byobu-modrian:
- add a new, fun script
* usr/bin/byobu-select-session:
- fix 256-color tmux reattaches
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 14 Nov 2011 17:43:02 -0600

View file

@ -57,7 +57,7 @@ def attach_session(session):
print("Attaching: [%s]\n" % session)
items = session.split("____", 2)
if items[0] == "tmux":
os.execvp("tmux", ["", "attach", "-t", items[1]])
os.execvp("tmux", ["", "-2", "attach", "-t", items[1]])
else:
os.execvp("screen", ["", "-AOxRR", items[1]])
@ -99,7 +99,7 @@ if len(sessions) > 1:
elif len(sessions) == 1:
# Attach to the only session; must use the binary, not the wrapper!
if BYOBU_BACKEND == "tmux":
os.execvp("tmux", ["", "attach"])
os.execvp("tmux", ["", "-2", "attach"])
else:
os.execvp("screen", ["", "-AOxRR"])