1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/vendor/github.com/containerd/console
..
console.go
console_linux.go
console_unix.go
console_windows.go
LICENSE
README.md
tc_darwin.go
tc_freebsd.go
tc_linux.go
tc_solaris_cgo.go
tc_solaris_nocgo.go
tc_unix.go

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)