From 13e01d29d14e7e7403d0c45c5699ea9160243868 Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Tue, 5 Apr 2011 12:01:04 -0700 Subject: oe.terminal: improve how we spawn screen - 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 file changed, 6 insertions(+), 1 deletion(-) (limited to 'meta/lib/oe') diff --git a/meta/lib/oe/terminal.py b/meta/lib/oe/terminal.py index 3767935586..3965462598 100644 --- a/meta/lib/oe/terminal.py +++ b/meta/lib/oe/terminal.py @@ -70,7 +70,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, env=None): + Terminal.__init__(self, command, title, env) + logger.warn('Screen started. Please connect in another terminal with ' + '"screen -r devshell"') def prioritized(): -- cgit v1.2.3