summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDarius Makovsky <traveltissues@protonmail.com>2019-11-13 10:18:52 +0000
committerDarius Makovsky <traveltissues@protonmail.com>2019-11-13 11:00:54 +0000
commit0f6d797874b6335259ae34d3754cf3011db8ece3 (patch)
tree9c1f4c9146a24c7966ca0e594390a40dfe1d6ebd /src
parente42e4822421b81a577c598020400b5c721498e6f (diff)
downloadbuildstream-0f6d797874b6335259ae34d3754cf3011db8ece3.tar.gz
Pass color setting to Status
Diffstat (limited to 'src')
-rw-r--r--src/buildstream/_frontend/status.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/buildstream/_frontend/status.py b/src/buildstream/_frontend/status.py
index 8da7df047..85fdf7451 100644
--- a/src/buildstream/_frontend/status.py
+++ b/src/buildstream/_frontend/status.py
@@ -42,7 +42,6 @@ from .widget import TimeCode
# success_profile (Profile): Formatting profile for success text
# error_profile (Profile): Formatting profile for error text
# stream (Stream): The Stream
-# colors (bool): Whether to print the ANSI color codes in the output
#
class Status():
@@ -56,7 +55,7 @@ class Status():
def __init__(self, context, state,
content_profile, format_profile,
success_profile, error_profile,
- stream, colors=False):
+ stream):
self._context = context
self._state = state
@@ -68,7 +67,6 @@ class Status():
self._jobs = OrderedDict()
self._last_lines = 0 # Number of status lines we last printed to console
self._spacing = 1
- self._colors = colors
self._header = _StatusHeader(context, state,
content_profile, format_profile,
success_profile, error_profile,
@@ -139,7 +137,7 @@ class Status():
# Render the one line header
text = self._header.render(self._term_width, elapsed)
- click.echo(text, color=self._colors, err=True)
+ click.echo(text, err=True)
# Now we have the number of columns, and an allocation for
# alignment of each column
@@ -155,7 +153,7 @@ class Status():
text += ' ' * self._spacing
# Print the line
- click.echo(text, color=self._colors, err=True)
+ click.echo(text, err=True)
# Track what we printed last, for the next clear
self._last_lines = self._alloc_lines + self._header.lines