summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-07 13:18:20 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-08 13:58:08 +0000
commit46d62d076dd08c57f87b10be098cf47b34c41176 (patch)
tree77af2453ee3558bbc19538a0952b85bcd391daca /bitbake/lib/bb
parentbfa7859ffa42927214c429a6e081acc8027227c5 (diff)
downloadpoky-46d62d076dd08c57f87b10be098cf47b34c41176.tar.gz
bitbake: knotty: Use non-interactive mode as fallback for dumb terminals
TERM=dumb bitbake X shows no output for task status which is suboptimal. Use the non-interactive mode if the terminal doesn't support what we need for interactive mode giving a better user experience. Also print a note to the console to say this has happened. [YOCTO #8768] (Bitbake rev: 6f84cf4bd77f35fcd07e0b2f5149f1d6866a414d) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/ui/knotty.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py
index 053d1e978b..b42f8eb888 100644
--- a/bitbake/lib/bb/ui/knotty.py
+++ b/bitbake/lib/bb/ui/knotty.py
@@ -174,6 +174,10 @@ class TerminalFilter(object):
174 self.rows, self.columns = self.getTerminalColumns() 174 self.rows, self.columns = self.getTerminalColumns()
175 except: 175 except:
176 self.cuu = None 176 self.cuu = None
177 if not self.cuu:
178 self.interactive = False
179 bb.note("Unable to use interactive mode for this terminal, using fallback")
180 return
177 console.addFilter(InteractConsoleLogFilter(self, format)) 181 console.addFilter(InteractConsoleLogFilter(self, format))
178 errconsole.addFilter(InteractConsoleLogFilter(self, format)) 182 errconsole.addFilter(InteractConsoleLogFilter(self, format))
179 183