Skip to content

Commit

Permalink
add another theme
Browse files Browse the repository at this point in the history
  • Loading branch information
schollz committed Oct 3, 2024
1 parent 787de03 commit a10b636
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions examples/theme-unicode/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package main

import (
"time"

"github.com/schollz/progressbar/v3"
)

func main() {
bar := progressbar.NewOptions(100,
progressbar.OptionUseANSICodes(false),
progressbar.OptionEnableColorCodes(true),
progressbar.OptionShowIts(),
progressbar.OptionSetTheme(progressbar.ThemeUnicode),
progressbar.OptionShowElapsedTimeOnFinish(),
progressbar.OptionFullWidth(),
)

for i := 0; i < 100; i++ {
bar.Add(1)
time.Sleep(66 * time.Millisecond)
}
}

0 comments on commit a10b636

Please sign in to comment.