[oe-commits] Chris Larson : oe.terminal: improve how we spawn screen
git version control
git at git.openembedded.org
Wed Aug 10 12:35:37 UTC 2011
Module: openembedded-core.git
Branch: master
Commit: 13e01d29d14e7e7403d0c45c5699ea9160243868
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=13e01d29d14e7e7403d0c45c5699ea9160243868
Author: Chris Larson <chris_larson at mentor.com>
Date: Tue Apr 5 12:01:04 2011 -0700
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 at mentor.com>
---
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():
More information about the Openembedded-commits
mailing list