summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2011-04-05 12:01:04 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-08-10 13:25:11 +0100
commit13e01d29d14e7e7403d0c45c5699ea9160243868 (patch)
treea72071897745c920e52fbbfc304d83055e79f798 /meta
parent69f77f80965fa06a057837f8f49eda06855c4086 (diff)
downloadopenembedded-core-13e01d29d14e7e7403d0c45c5699ea9160243868.tar.gz
openembedded-core-13e01d29d14e7e7403d0c45c5699ea9160243868.tar.bz2
openembedded-core-13e01d29d14e7e7403d0c45c5699ea9160243868.zip
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 <chris_larson@mentor.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oe/terminal.py7
1 files changed, 6 insertions, 1 deletions
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():