From 15ef9cb57e84cdfed527542ab48a8d6b1ab99fbf Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Mon, 3 Jan 2011 10:50:06 -0600 Subject: [PATCH] usr/bin/byobu-select-session, usr/share/man/man1/byobu.1: support "hiding" sessions, by prepending a "." to the session name, LP: #599334 --- debian/changelog | 2 ++ usr/bin/byobu-select-session | 3 ++- usr/share/man/man1/byobu.1 | 6 ++++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 141b5a3a..993024f2 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,8 @@ byobu (3.20) unreleased; urgency=low * usr/lib/byobu/network: drop unnecessary unit=kbps * usr/bin/byobu: allow for -xS or the like, LP: #684926 + * usr/bin/byobu-select-session, usr/share/man/man1/byobu.1: support + "hiding" sessions, by prepending a "." to the session name, LP: #599334 -- Dustin Kirkland Tue, 28 Dec 2010 00:05:13 -0600 diff --git a/usr/bin/byobu-select-session b/usr/bin/byobu-select-session index 5b3042f4..e0694cef 100755 --- a/usr/bin/byobu-select-session +++ b/usr/bin/byobu-select-session @@ -34,7 +34,8 @@ output = commands.getoutput('screen -ls ') if output: for s in output.split("\n"): s = re.sub(r'\s+', ' ', s) - if s.find(" ") == 0 and len(s) > 1: + # Ignore hidden sessions (named sessions that start with a ".") + if s.find(" ") == 0 and len(s) > 1 and s.count("..") == 0: text.append(s) items = s.split(" ") sessions.append(items[1]) diff --git a/usr/share/man/man1/byobu.1 b/usr/share/man/man1/byobu.1 index 61fe1ee6..9bb3ef8a 100644 --- a/usr/share/man/man1/byobu.1 +++ b/usr/share/man/man1/byobu.1 @@ -91,6 +91,12 @@ Note that DATA=\fI$HOME/.byobu\fP. \fBwifi_quality\fP \- the connection rate and signal quality of the wifi connection; displayed in the lower bar toward the right in black text on a cyan background; the connection rate is in 'Mb/s' and the signal quality is as a percentage with a trailing '%' +.SH SESSIONS + +Byobu name screen sessions "byobu", if unspecified. To hide sessions from \fBbyobu-select-session\fP(1), prepend a "." to the beginning of the session name, like: + + byobu -S .hidden + .SH WINDOWS Each open window in the screen session is displayed in the upper bar toward the far left. These are numbered, and include indicators as to activity in the window (see "activity" in \fBscreen\fP(1) for symbol definitions). The current active window is highlighted by inverting the background/text from the rest of the window bar.