From 264cff93a2d45837c938739738d51026387f3e1b Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Sat, 9 Dec 2023 12:13:03 -0500 Subject: [PATCH] added ANSI values to progressbar --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index c47b796..60f9b75 100644 --- a/main.go +++ b/main.go @@ -59,6 +59,7 @@ func main() { checkBar := progressbar.NewOptions(len(upcs), progressbar.OptionEnableColorCodes(true), progressbar.OptionSetDescription("[cyan][1/2][reset] Calculating Check Digits..."), + progressbar.OptionUseANSICodes(true), progressbar.OptionSetTheme(progressbar.Theme{ Saucer: "[green]=[reset]", SaucerHead: "[green]>[reset]", @@ -145,6 +146,7 @@ func main() { answerBar := progressbar.NewOptions(len(gtins), progressbar.OptionEnableColorCodes(true), progressbar.OptionSetDescription("[cyan][2/2][reset] Writing answers into file..."), + progressbar.OptionUseANSICodes(true), progressbar.OptionClearOnFinish(), progressbar.OptionSetTheme(progressbar.Theme{ Saucer: "[green]=[reset]",