From patchwork Thu May 31 05:14:01 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [bitbake-devel, 6/6] meta/lib/oe/terminal.py: Add an additional reference to screen called screen_inline Date: Thu, 31 May 2012 05:14:01 -0000 From: Jason Wessel X-Patchwork-Id: 28991 Message-Id: <1338441241-32230-7-git-send-email-jason.wessel@windriver.com> To: This is a new mode for screen with the explicit purpose of invoking screen on the same terminal that you started bitbake. The bitbake knotty will attempt to launch screen directly when using this setting for OE_TERMINAL. Signed-off-by: Jason Wessel --- meta/lib/oe/terminal.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/meta/lib/oe/terminal.py b/meta/lib/oe/terminal.py index 43639d5..5b17f76 100644 --- a/meta/lib/oe/terminal.py +++ b/meta/lib/oe/terminal.py @@ -100,6 +100,13 @@ class Screen(Terminal): logger.warn('Screen started. Please connect in another terminal with ' '"screen -r devshell"') +class Screen_inline(Terminal): + command = 'screen -D -m -t "{title}" -S devshell {command}' + + def __init__(self, command, title=None, env=None): + Terminal.__init__(self, command, title, env) + logger.warn('Screen Connect Command: screen -r devshell') + def prioritized(): return Registry.prioritized()