From 8e7870b590c88456b5da679442d3c5ebd246bd40 Mon Sep 17 00:00:00 2001 From: Michael Schurter Date: Fri, 30 Mar 2018 15:44:06 -0700 Subject: [PATCH] cli: remove info color on monitored output --- command/monitor.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/command/monitor.go b/command/monitor.go index da66e23ea..5449186a2 100644 --- a/command/monitor.go +++ b/command/monitor.go @@ -68,6 +68,15 @@ type monitor struct { // write output information to the provided ui. The length parameter determines // the number of characters for identifiers in the ui. func newMonitor(ui cli.Ui, client *api.Client, length int) *monitor { + if colorUi, ok := ui.(*cli.ColoredUi); ok { + // Disable Info color for monitored output + ui = &cli.ColoredUi{ + ErrorColor: colorUi.ErrorColor, + WarnColor: colorUi.WarnColor, + InfoColor: cli.UiColorNone, + Ui: colorUi.Ui, + } + } mon := &monitor{ ui: &cli.PrefixedUi{ InfoPrefix: "==> ",