MCPcopy Index your code
hub / github.com/gosuri/uilive

github.com/gosuri/uilive @v0.0.4

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.0.4 ↗ · + Follow
30 symbols 71 edges 9 files 10 documented · 33% 13 cross-repo links updated 2y agov0.0.4 · 2020-01-03★ 1,7278 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

uilive GoDoc Build Status

uilive is a go library for updating terminal output in realtime. It provides a buffered io.Writer that is flushed at a timed interval. uilive powers uiprogress.

Usage Example

Calling uilive.New() will create a new writer. To start rendering, simply call writer.Start() and update the ui by writing to the writer. Full source for the below example is in example/main.go.

writer := uilive.New()
// start listening for updates and render
writer.Start()

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.Stop() // flush and stop rendering

The above will render

example

Installation

$ go get -v github.com/gosuri/uilive

Extension points exported contracts — how you extend this code

FdWriter (Interface)
FdWriter is a writer with a file descriptor.
writer.go

Core symbols most depended-on inside this repo

Stop
called by 6
writer.go
Start
called by 5
writer.go
Fd
called by 4
writer.go
New
called by 4
writer.go
Write
called by 4
writer.go
clearLines
called by 2
writer_posix.go
Flush
called by 2
writer.go
Bypass
called by 2
writer.go

Shape

Method 12
Function 7
Struct 7
TypeAlias 3
Interface 1

Languages

Go100%

Modules by API surface

writer.go15 symbols
writer_windows.go7 symbols
writer_test.go2 symbols
terminal_size.go2 symbols
writer_posix.go1 symbols
terminal_size_windows.go1 symbols
example_test.go1 symbols
example/main.go1 symbols

For agents

$ claude mcp add uilive \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact