added ANSI values to progressbar

This commit is contained in:
John O'Keefe 2023-12-09 12:13:03 -05:00
parent 029058f49c
commit 264cff93a2

View File

@ -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]",