• Stars
    star
    1,687
  • Rank 27,667 (Top 0.6 %)
  • Language
    Go
  • License
    MIT License
  • Created about 9 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

uilive is a go library for updating terminal output in realtime

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

More Repositories

1

uiprogress

A go library to render progress bars in terminal applications
Go
2,090
star
2

uitable

A go library to improve readability in terminal apps using tabular data
Go
736
star
3

vagrant-env

Vagrant plugin to load environment variables from .env into ENV
Ruby
146
star
4

go-store

A simple and fast Redis backed key-value store library for Go
Go
112
star
5

cmdns

cmdns is a go library for namespacing a command tree
Go
25
star
6

aws-rds-cookbook

Development repository for chef cookbook aws-rds
Ruby
16
star
7

dotfiles

Greg Osuri's dotfiles
Shell
10
star
8

terraform-exec-provider

Go
9
star
9

git-url-sub

git remote url substitution utility
Shell
7
star
10

awesome-sysops

Curated list of awesome tools for systems operators
6
star
11

rails-app-cookbook

Example cookbook using aws-rds cookbook to install rails_app
Ruby
6
star
12

dsky

dsky is a UI framework for terminal applications
Go
5
star
13

monocle

a go library for advanced command line help
Go
5
star
14

multibar

[DEPRICATED] MultiBar is go library to render progress bars in the terminal
Go
5
star
15

Pylearn

Greg Osuri's Python Journey
4
star
16

handshake-containers

Makefile
4
star
17

uiutil

uiutil is a go library that provides a set of helpers to improve readbility in terminal applications
Go
4
star
18

ctxexec

ctxexec is go library that provides helper functions for running context-aware external commands
Go
3
star
19

grumpy

Grumpy cat is a blockchain to honor Grumpy Cat
TypeScript
2
star
20

gosuri.github.io

Source for gregosuri.com
SCSS
2
star
21

petit

a simple, fast, rack-based url routing server
Ruby
1
star
22

aws-vpc-terraform-post

Support files for my airpair post
1
star
23

test-runner

Linux container based test running tools for ruby applications
Shell
1
star
24

akt20

1
star
25

hostnamer

Cluster member discovery and registration tool for Route 53
Ruby
1
star
26

knife-ec2-ssh-config

Knife plugin to update ssh client config with ec2 instance information
Ruby
1
star
27

vanitypkg

vanitypkg provides a server that hosts vanity package names for Go package hosted on github
Go
1
star
28

ap-workshop-cookbooks

Chef cookbooks for my Airpair containers workshop
Ruby
1
star
29

chef-ebs-directory

Chef cookbook for moving a directory to a ebs volume
Ruby
1
star
30

noop

An empty repo used for testing git ops
1
star
31

build-compiler

Container based build tools for Ubuntu 14.04
Shell
1
star
32

nextjs-notes

JavaScript
1
star
33

eve

eve fork
Go
1
star