diff options
author | Chris Larson <chris_larson@mentor.com> | 2011-04-05 12:01:04 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-08-10 13:33:07 +0100 |
commit | d0552e9c651b9b8b31f966f1ed4bdc0b1a9b16c2 (patch) | |
tree | f6c50c5d7b43e9d0199d344afa6a6062f0dee4b4 /meta | |
parent | 057cc1e8162017b63a334953eb0998863e6b640f (diff) | |
download | ast2050-yocto-poky-d0552e9c651b9b8b31f966f1ed4bdc0b1a9b16c2.zip ast2050-yocto-poky-d0552e9c651b9b8b31f966f1ed4bdc0b1a9b16c2.tar.gz |
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).
(From OE-Core rev: 13e01d29d14e7e7403d0c45c5699ea9160243868)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | 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 3767935..3965462 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(): |