Skip to content

mattn/uilive

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

uilive GoDoc

uilive is a go library for refreshing ui in a timed interval for terminal applications

Example

Full source for the below example is in example/main.go.

writer := uilive.New()
writer.Start() // start listening

for i := 0; i <= 100; i++ {
  fmt.Fprintf(writer, "Downloading.. (%d/%d) GB\n", i, 100)
  time.Sleep(time.Millisecond * 5)
}

fmt.Fprintln(writer, "Finished: Downloaded 100GB")
writer.Wait() // wait for writer to finish writing

The above will render

example

About

uilive is a go library for refreshing ui in a timed interval for terminal applications

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages

  • Go 100.0%