]> code.ossystems Code Review - openembedded-core.git/commitdiff
oe.terminal: improve how we spawn screen
authorChris Larson <chris_larson@mentor.com>
Tue, 5 Apr 2011 19:01:04 +0000 (12:01 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 10 Aug 2011 12:25:11 +0000 (13:25 +0100)
- 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 37679355863ecfd103da35cfd7e29ea9f1021818..3965462598a274f29cea5997b8de8ac9e5a87900 100644 (file)
@@ -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():