buildkit/vendor/github.com/containerd/console
Akihiro Suda 126f91dea7 update containerd (binary: v1.0.3, library: Apr 3, 2018)
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
2018-04-04 17:22:20 +09:00
..
LICENSE worker: runc worker exection 2017-06-02 10:20:05 -07:00
README.md worker: runc worker exection 2017-06-02 10:20:05 -07:00
console.go update containerd (binary: v1.0.3, library: Apr 3, 2018) 2018-04-04 17:22:20 +09:00
console_linux.go update containerd (binary: v1.0.3, library: Apr 3, 2018) 2018-04-04 17:22:20 +09:00
console_unix.go update containerd (binary: v1.0.3, library: Apr 3, 2018) 2018-04-04 17:22:20 +09:00
console_windows.go update containerd (binary: v1.0.3, library: Apr 3, 2018) 2018-04-04 17:22:20 +09:00
tc_darwin.go update containerd (binary: v1.0.3, library: Apr 3, 2018) 2018-04-04 17:22:20 +09:00
tc_freebsd.go update containerd (binary: v1.0.3, library: Apr 3, 2018) 2018-04-04 17:22:20 +09:00
tc_linux.go update containerd (binary: v1.0.3, library: Apr 3, 2018) 2018-04-04 17:22:20 +09:00
tc_openbsd_cgo.go update containerd (binary: v1.0.3, library: Apr 3, 2018) 2018-04-04 17:22:20 +09:00
tc_openbsd_nocgo.go update containerd (binary: v1.0.3, library: Apr 3, 2018) 2018-04-04 17:22:20 +09:00
tc_solaris_cgo.go update containerd (binary: v1.0.3, library: Apr 3, 2018) 2018-04-04 17:22:20 +09:00
tc_solaris_nocgo.go update containerd (binary: v1.0.3, library: Apr 3, 2018) 2018-04-04 17:22:20 +09:00
tc_unix.go update containerd (binary: v1.0.3, library: Apr 3, 2018) 2018-04-04 17:22:20 +09: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)