aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2011-04-05 12:01:04 -0700
committerChris Larson <chris_larson@mentor.com>2011-05-18 09:56:09 -0700
commitc83179c592607a1796f5944cd2a3184aece9b341 (patch)
tree33e8e69c46d36e6a4d502b58e275422d0cc478fe
parent96e4df5d0b4e27e40a2a6b5d7db2631b9c203010 (diff)
downloadopenembedded-core-contrib-kergoth/devshell.tar.gz
openembedded-core-contrib-kergoth/devshell.tar.bz2
openembedded-core-contrib-kergoth/devshell.zip
oe.terminal: improve how we spawn screenkergoth/devshell
- 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>
-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 e14fc5dbc4..4fd281c5fa 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():