open-nomad/vendor/github.com/containerd/console
Nick Ethier 66ff12e5f7 Update runc/libcontainer and friends (#4655)
* vendor: bump libcontainer and docker to remove Sirupsen imports

* vendor: fix bad vendoring of archive package

* vendor: fix api changes to cgroups in executor

* vendor: fix docker api changes

* vendor: update github.com/Azure/go-ansiterm to use non capitalized logrus import
2018-10-16 16:53:30 -07:00
..
LICENSE Update runc/libcontainer and friends (#4655) 2018-10-16 16:53:30 -07:00
README.md Update runc/libcontainer and friends (#4655) 2018-10-16 16:53:30 -07:00
console.go Update runc/libcontainer and friends (#4655) 2018-10-16 16:53:30 -07:00
console_linux.go Update runc/libcontainer and friends (#4655) 2018-10-16 16:53:30 -07:00
console_unix.go Update runc/libcontainer and friends (#4655) 2018-10-16 16:53:30 -07:00
console_windows.go Update runc/libcontainer and friends (#4655) 2018-10-16 16:53:30 -07:00
tc_darwin.go Update runc/libcontainer and friends (#4655) 2018-10-16 16:53:30 -07:00
tc_freebsd.go Update runc/libcontainer and friends (#4655) 2018-10-16 16:53:30 -07:00
tc_linux.go Update runc/libcontainer and friends (#4655) 2018-10-16 16:53:30 -07:00
tc_solaris_cgo.go Update runc/libcontainer and friends (#4655) 2018-10-16 16:53:30 -07:00
tc_solaris_nocgo.go Update runc/libcontainer and friends (#4655) 2018-10-16 16:53:30 -07:00
tc_unix.go Update runc/libcontainer and friends (#4655) 2018-10-16 16:53:30 -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)