mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
* usr/bin/byobu-select-session:
- fix 256-color tmux reattaches
This commit is contained in:
parent
6d3b563936
commit
8db314433d
2 changed files with 4 additions and 2 deletions
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -2,6 +2,8 @@ byobu (4.49) unreleased; urgency=low
|
||||||
|
|
||||||
* usr/bin/byobu-modrian:
|
* usr/bin/byobu-modrian:
|
||||||
- add a new, fun script
|
- 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
|
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 14 Nov 2011 17:43:02 -0600
|
||||||
|
|
||||||
|
|
|
@ -57,7 +57,7 @@ def attach_session(session):
|
||||||
print("Attaching: [%s]\n" % session)
|
print("Attaching: [%s]\n" % session)
|
||||||
items = session.split("____", 2)
|
items = session.split("____", 2)
|
||||||
if items[0] == "tmux":
|
if items[0] == "tmux":
|
||||||
os.execvp("tmux", ["", "attach", "-t", items[1]])
|
os.execvp("tmux", ["", "-2", "attach", "-t", items[1]])
|
||||||
else:
|
else:
|
||||||
os.execvp("screen", ["", "-AOxRR", items[1]])
|
os.execvp("screen", ["", "-AOxRR", items[1]])
|
||||||
|
|
||||||
|
@ -99,7 +99,7 @@ if len(sessions) > 1:
|
||||||
elif len(sessions) == 1:
|
elif len(sessions) == 1:
|
||||||
# Attach to the only session; must use the binary, not the wrapper!
|
# Attach to the only session; must use the binary, not the wrapper!
|
||||||
if BYOBU_BACKEND == "tmux":
|
if BYOBU_BACKEND == "tmux":
|
||||||
os.execvp("tmux", ["", "attach"])
|
os.execvp("tmux", ["", "-2", "attach"])
|
||||||
else:
|
else:
|
||||||
os.execvp("screen", ["", "-AOxRR"])
|
os.execvp("screen", ["", "-AOxRR"])
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue