DockerCLI/vendor/github.com/containerd/console
Tonis Tiigi 0f97642915 build: basic buildkit progress support
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2018-06-09 20:51:34 +00:00
..
LICENSE build: basic buildkit progress support 2018-06-09 20:51:34 +00:00
README.md build: basic buildkit progress support 2018-06-09 20:51:34 +00:00
console.go build: basic buildkit progress support 2018-06-09 20:51:34 +00:00
console_linux.go build: basic buildkit progress support 2018-06-09 20:51:34 +00:00
console_unix.go build: basic buildkit progress support 2018-06-09 20:51:34 +00:00
console_windows.go build: basic buildkit progress support 2018-06-09 20:51:34 +00:00
tc_darwin.go build: basic buildkit progress support 2018-06-09 20:51:34 +00:00
tc_freebsd.go build: basic buildkit progress support 2018-06-09 20:51:34 +00:00
tc_linux.go build: basic buildkit progress support 2018-06-09 20:51:34 +00:00
tc_openbsd_cgo.go build: basic buildkit progress support 2018-06-09 20:51:34 +00:00
tc_openbsd_nocgo.go build: basic buildkit progress support 2018-06-09 20:51:34 +00:00
tc_solaris_cgo.go build: basic buildkit progress support 2018-06-09 20:51:34 +00:00
tc_solaris_nocgo.go build: basic buildkit progress support 2018-06-09 20:51:34 +00:00
tc_unix.go build: basic buildkit progress support 2018-06-09 20:51:34 +00:00

README.md

console

Build Status

Golang package for dealing with consoles. Light on deps and a simple API.

Modifying the current process

current := console.Current()
defer current.Reset()

if err := current.SetRaw(); err != nil {
}
ws, err := current.Size()
current.Resize(ws)