diff options
| -rw-r--r-- | meta/lib/oe/terminal.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/meta/lib/oe/terminal.py b/meta/lib/oe/terminal.py index 352a28239a..71d8a43410 100644 --- a/meta/lib/oe/terminal.py +++ b/meta/lib/oe/terminal.py | |||
| @@ -96,9 +96,14 @@ class Screen(Terminal): | |||
| 96 | def __init__(self, sh_cmd, title=None, env=None, d=None): | 96 | def __init__(self, sh_cmd, title=None, env=None, d=None): |
| 97 | s_id = "devshell_%i" % os.getpid() | 97 | s_id = "devshell_%i" % os.getpid() |
| 98 | self.command = "screen -D -m -t \"{title}\" -S %s {command}" % s_id | 98 | self.command = "screen -D -m -t \"{title}\" -S %s {command}" % s_id |
| 99 | Terminal.__init__(self, sh_cmd, title, env) | 99 | Terminal.__init__(self, sh_cmd, title, env, d) |
| 100 | logger.warn('Screen started. Please connect in another terminal with ' | 100 | msg = 'Screen started. Please connect in another terminal with ' \ |
| 101 | '"screen -r devshell %s"' % s_id) | 101 | '"screen -r %s"' % s_id |
| 102 | if (d): | ||
| 103 | bb.event.fire(bb.event.LogExecTTY(msg, "screen -r %s" % s_id, | ||
| 104 | 0.5, 10), d) | ||
| 105 | else: | ||
| 106 | logger.warn(msg) | ||
| 102 | 107 | ||
| 103 | 108 | ||
| 104 | def prioritized(): | 109 | def prioritized(): |
