mirror of
https://git.yoctoproject.org/poky
synced 2026-09-19 00:49:33 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
357bce7a15
commit
e396769d8a
@@ -107,6 +107,7 @@ class Screen(Terminal):
|
|||||||
|
|
||||||
class TmuxRunning(Terminal):
|
class TmuxRunning(Terminal):
|
||||||
"""Open a new pane in the current running tmux window"""
|
"""Open a new pane in the current running tmux window"""
|
||||||
|
name = 'tmux-running'
|
||||||
command = 'tmux split-window {command}'
|
command = 'tmux split-window {command}'
|
||||||
priority = 2.75
|
priority = 2.75
|
||||||
|
|
||||||
@@ -119,7 +120,7 @@ class TmuxRunning(Terminal):
|
|||||||
|
|
||||||
Terminal.__init__(self, sh_cmd, title, env, d)
|
Terminal.__init__(self, sh_cmd, title, env, d)
|
||||||
|
|
||||||
class TmuxNewSession(Terminal):
|
class Tmux(Terminal):
|
||||||
"""Start a new tmux session and window"""
|
"""Start a new tmux session and window"""
|
||||||
command = 'tmux new -d -s devshell -n devshell {command}'
|
command = 'tmux new -d -s devshell -n devshell {command}'
|
||||||
priority = 0.75
|
priority = 0.75
|
||||||
|
|||||||
Reference in New Issue
Block a user