runc/vendor/github.com/containerd/console
Michael Crosby 9ba16b6d5a Update console and golang/sys deps
This bumps the console and golang/sys deps for runc.

The major change is that the console package does not clear ONLCR within
the package and leaves it up to the client to handle this if they
please.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-09-25 13:23:50 -04:00
..
LICENSE tty: move IO of master pty to be done with epoll 2017-07-28 12:35:02 +01:00
README.md tty: move IO of master pty to be done with epoll 2017-07-28 12:35:02 +01:00
console.go Update console and golang/sys deps 2017-09-25 13:23:50 -04:00
console_linux.go Update console and golang/sys deps 2017-09-25 13:23:50 -04:00
console_unix.go Update console and golang/sys deps 2017-09-25 13:23:50 -04:00
console_windows.go Update console and golang/sys deps 2017-09-25 13:23:50 -04:00
tc_darwin.go Update console and golang/sys deps 2017-09-25 13:23:50 -04:00
tc_freebsd.go Update console and golang/sys deps 2017-09-25 13:23:50 -04:00
tc_linux.go Update console and golang/sys deps 2017-09-25 13:23:50 -04:00
tc_solaris_cgo.go Update console and golang/sys deps 2017-09-25 13:23:50 -04:00
tc_solaris_nocgo.go Update console and golang/sys deps 2017-09-25 13:23:50 -04:00
tc_unix.go Update console and golang/sys deps 2017-09-25 13:23:50 -04: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)