k3s/vendor/github.com/containerd/console
Darren Shepherd fa08d6076c Update vendor 2019-01-11 21:58:27 -07:00
..
.travis.yml Update vendor 2019-01-11 21:58:27 -07:00
LICENSE Update vendor 2019-01-11 21:58:27 -07:00
README.md Update vendor 2019-01-11 21:58:27 -07:00
console.go Update vendor 2019-01-11 21:58:27 -07:00
console_linux.go Update vendor 2019-01-11 21:58:27 -07:00
console_unix.go Update vendor 2019-01-11 21:58:27 -07:00
console_windows.go Update vendor 2019-01-11 21:58:27 -07:00
tc_darwin.go Update vendor 2019-01-11 21:58:27 -07:00
tc_freebsd.go Update vendor 2019-01-11 21:58:27 -07:00
tc_linux.go Update vendor 2019-01-11 21:58:27 -07:00
tc_openbsd_cgo.go Update vendor 2019-01-11 21:58:27 -07:00
tc_openbsd_nocgo.go Update vendor 2019-01-11 21:58:27 -07:00
tc_solaris_cgo.go Update vendor 2019-01-11 21:58:27 -07:00
tc_solaris_nocgo.go Update vendor 2019-01-11 21:58:27 -07:00
tc_unix.go Update vendor 2019-01-11 21:58:27 -07: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)