From patchwork Wed May 18 17:18:01 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [(v2,resend),3/3] oe.terminal: improve how we spawn screen Date: Wed, 18 May 2011 17:18:01 -0000 From: Christopher Larson X-Patchwork-Id: 4349 Message-Id: To: openembedded-core@lists.openembedded.org Cc: Chris Larson From: Chris Larson - Name the screen session 'devshell', to avoid confusion if running bitbake itself under a screen session. - Display a warning message when spawning screen, so it's clear to the user that screen has been run (otherwise do_devshell just appears to hang). Signed-off-by: Chris Larson --- meta/lib/oe/terminal.py | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/meta/lib/oe/terminal.py b/meta/lib/oe/terminal.py index e14fc5d..4fd281c 100644 --- a/meta/lib/oe/terminal.py +++ b/meta/lib/oe/terminal.py @@ -74,7 +74,12 @@ class Rxvt(XTerminal): priority = 1 class Screen(Terminal): - command = 'screen -D -m -t "{title}" {command}' + command = 'screen -D -m -t "{title}" -S devshell {command}' + + def __init__(self, command, title=None): + Terminal.__init__(self, command, title) + logger.warn('Screen started. Please connect in another terminal with ' + '"screen -r devshell"') def prioritized():