From 98794aa430a66b816f45c43902ae802aafcf25d4 Mon Sep 17 00:00:00 2001 From: Wes Date: Wed, 25 Sep 2024 12:48:34 -0700 Subject: [PATCH] feat: update terminal status indicators (#2820) Another option for the progress/complete indicators on the interactive terminal. No worries if the other is preferred, I was mostly playing around to see what we could do here. https://github.com/user-attachments/assets/d2fc028a-e9b2-4087-b306-28ca0ab82817 --- internal/terminal/status.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/terminal/status.go b/internal/terminal/status.go index a2cedd2b9a..c18403144f 100644 --- a/internal/terminal/status.go +++ b/internal/terminal/status.go @@ -41,7 +41,7 @@ var _ StatusLine = &terminalStatusLine{} var buildColors map[BuildState]string var buildStateIcon map[BuildState]func(int) string -var spinner = []string{"▁", "▃", "▄", "▅", "▆", "▇", "█", "▇", "▆", "▅", "▄", "▃"} +var spinner = []string{"◜", "◝", "◞", "◟"} func init() { buildColors = map[BuildState]string{ @@ -56,10 +56,10 @@ func init() { return spinner[spinnerCount] } block := func(int) string { - return "█" + return "✔" } empty := func(int) string { - return "▁" + return "•" } buildStateIcon = map[BuildState]func(int) string{ BuildStateWaiting: empty, @@ -204,7 +204,7 @@ func NewStatusManager(ctx context.Context) StatusManager { go func() { for !sm.closed.Load() { - time.Sleep(300 * time.Millisecond) + time.Sleep(150 * time.Millisecond) sm.statusLock.Lock() if sm.spinnerCount == len(spinner)-1 { sm.spinnerCount = 0