Skip to content

Commit

Permalink
Cyan SGR code
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
  • Loading branch information
crazy-max committed Sep 20, 2021
1 parent 31c3565 commit 1a807a2
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions util/progress/progressui/display.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,6 @@ import (
"golang.org/x/time/rate"
)

var (
// https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit
colorBlue = aec.Color8BitF(32)
colorOrange = aec.Color8BitF(214)
colorRed = aec.Color8BitF(160)
)

func DisplaySolveStatus(ctx context.Context, phase string, c console.Console, w io.Writer, ch chan *client.SolveStatus) error {

modeConsole := c != nil
Expand Down Expand Up @@ -526,11 +519,11 @@ func (disp *display) print(d displayInfo, width, height int, all bool) {

out = align(out, timer, width)
if j.completedTime != nil {
color := colorBlue
color := aec.CyanF
if j.isCanceled {
color = colorOrange
color = aec.YellowF
} else if j.hasError {
color = colorRed
color = aec.RedF
}
out = aec.Apply(out, color)
}
Expand Down

0 comments on commit 1a807a2

Please sign in to comment.