]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
oe.terminal: improve how we spawn screen kergoth/devshell
authorChris Larson <chris_larson@mentor.com>
Tue, 5 Apr 2011 19:01:04 +0000 (12:01 -0700)
committerChris Larson <chris_larson@mentor.com>
Wed, 18 May 2011 16:56:09 +0000 (09:56 -0700)
- 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>
meta/lib/oe/terminal.py

index e14fc5dbc4fa5f923e4bc57aaf2f9c46f5b9ec5d..4fd281c5fa360db86386a3a9dcb351bf343dd7ec 100644 (file)
@@ -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():