added ANSI values to progressbar
This commit is contained in:
parent
029058f49c
commit
264cff93a2
2
main.go
2
main.go
@ -59,6 +59,7 @@ func main() {
|
|||||||
checkBar := progressbar.NewOptions(len(upcs),
|
checkBar := progressbar.NewOptions(len(upcs),
|
||||||
progressbar.OptionEnableColorCodes(true),
|
progressbar.OptionEnableColorCodes(true),
|
||||||
progressbar.OptionSetDescription("[cyan][1/2][reset] Calculating Check Digits..."),
|
progressbar.OptionSetDescription("[cyan][1/2][reset] Calculating Check Digits..."),
|
||||||
|
progressbar.OptionUseANSICodes(true),
|
||||||
progressbar.OptionSetTheme(progressbar.Theme{
|
progressbar.OptionSetTheme(progressbar.Theme{
|
||||||
Saucer: "[green]=[reset]",
|
Saucer: "[green]=[reset]",
|
||||||
SaucerHead: "[green]>[reset]",
|
SaucerHead: "[green]>[reset]",
|
||||||
@ -145,6 +146,7 @@ func main() {
|
|||||||
answerBar := progressbar.NewOptions(len(gtins),
|
answerBar := progressbar.NewOptions(len(gtins),
|
||||||
progressbar.OptionEnableColorCodes(true),
|
progressbar.OptionEnableColorCodes(true),
|
||||||
progressbar.OptionSetDescription("[cyan][2/2][reset] Writing answers into file..."),
|
progressbar.OptionSetDescription("[cyan][2/2][reset] Writing answers into file..."),
|
||||||
|
progressbar.OptionUseANSICodes(true),
|
||||||
progressbar.OptionClearOnFinish(),
|
progressbar.OptionClearOnFinish(),
|
||||||
progressbar.OptionSetTheme(progressbar.Theme{
|
progressbar.OptionSetTheme(progressbar.Theme{
|
||||||
Saucer: "[green]=[reset]",
|
Saucer: "[green]=[reset]",
|
||||||
|
Loading…
Reference in New Issue
Block a user