diff options
author | Christopher Larson <chris_larson@mentor.com> | 2013-04-04 17:44:43 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-04-15 15:57:29 +0100 |
commit | d61d0a1fc80dff446d2019c0c0553714ac8cf629 (patch) | |
tree | a07ecc4ea2421d8c43e91085c8615164681c8a32 | |
parent | 79c2485204e4f496419d9c371535dbfea3126da7 (diff) | |
download | poky-d61d0a1fc80dff446d2019c0c0553714ac8cf629.tar.gz |
oe.terminal: add tmux classes
This adds two new Terminal classes. It's separated into two, so that opening
a split inside a tmux window is preferred to the other terminal types, but
opening a tmux session is prioritized only slightly higher than screen.
- tmuxrunning: Open a new pane in the current running tmux window. Requires
that the TMUX variable be added to the env whitelist to use it.
- tmux: Open a new tmux session
(From OE-Core rev: 10f64d202ceb230c3c79e09dce182ffce94d1117)
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/lib/oe/terminal.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/lib/oe/terminal.py b/meta/lib/oe/terminal.py index 2e23d59cae..aecf4e89d0 100644 --- a/meta/lib/oe/terminal.py +++ b/meta/lib/oe/terminal.py | |||
@@ -107,6 +107,7 @@ class Screen(Terminal): | |||
107 | 107 | ||
108 | class TmuxRunning(Terminal): | 108 | class TmuxRunning(Terminal): |
109 | """Open a new pane in the current running tmux window""" | 109 | """Open a new pane in the current running tmux window""" |
110 | name = 'tmux-running' | ||
110 | command = 'tmux split-window {command}' | 111 | command = 'tmux split-window {command}' |
111 | priority = 2.75 | 112 | priority = 2.75 |
112 | 113 | ||
@@ -119,7 +120,7 @@ class TmuxRunning(Terminal): | |||
119 | 120 | ||
120 | Terminal.__init__(self, sh_cmd, title, env, d) | 121 | Terminal.__init__(self, sh_cmd, title, env, d) |
121 | 122 | ||
122 | class TmuxNewSession(Terminal): | 123 | class Tmux(Terminal): |
123 | """Start a new tmux session and window""" | 124 | """Start a new tmux session and window""" |
124 | command = 'tmux new -d -s devshell -n devshell {command}' | 125 | command = 'tmux new -d -s devshell -n devshell {command}' |
125 | priority = 0.75 | 126 | priority = 0.75 |