[oe-commits] Christopher Larson : oe.terminal: add tmux classes
git at git.openembedded.org
git at git.openembedded.org
Mon Apr 15 14:55:19 UTC 2013
Module: openembedded-core.git
Branch: dylan
Commit: 10f64d202ceb230c3c79e09dce182ffce94d1117
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=10f64d202ceb230c3c79e09dce182ffce94d1117
Author: Christopher Larson <chris_larson at mentor.com>
Date: Thu Apr 4 17:44:43 2013 -0700
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
Signed-off-by: Christopher Larson <chris_larson at mentor.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
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 2e23d59..aecf4e8 100644
--- a/meta/lib/oe/terminal.py
+++ b/meta/lib/oe/terminal.py
@@ -107,6 +107,7 @@ class Screen(Terminal):
class TmuxRunning(Terminal):
"""Open a new pane in the current running tmux window"""
+ name = 'tmux-running'
command = 'tmux split-window {command}'
priority = 2.75
@@ -119,7 +120,7 @@ class TmuxRunning(Terminal):
Terminal.__init__(self, sh_cmd, title, env, d)
-class TmuxNewSession(Terminal):
+class Tmux(Terminal):
"""Start a new tmux session and window"""
command = 'tmux new -d -s devshell -n devshell {command}'
priority = 0.75
More information about the Openembedded-commits
mailing list