You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
package main
import (
"time""fmt""github.com/gosuri/uiprogress"
)
funcmain() {
uiprogress.Start() // start renderingbar:=uiprogress.AddBar(100) // Add a new bar// optionally, append and prepend completion and elapsed timebar.AppendCompleted()
bar.PrependElapsed()
i:=0forbar.Incr() {
time.Sleep(time.Millisecond*20)
i++ifi%10==0 {
fmt.Println("Well hello there")
}
}
}
I'd like for the lines to print above the progress bar, which would stay at the bottom. However I'm only getting duplicated progress and only one line printed (also not at the right place but I'm sure that's another issue):
In trying to reproduce the
apt
progress bar I adapted https://github.com/gosuri/uiprogress/blob/ec0f254bbca2b17ed68f18af8773a0527b522f01/example/simple/simple.go so that some lines are printed:I'd like for the lines to print above the progress bar, which would stay at the bottom. However I'm only getting duplicated progress and only one line printed (also not at the right place but I'm sure that's another issue):
The text was updated successfully, but these errors were encountered: