runc/vendor/github.com/containerd/console
Daniel Dao 91eafcbc65
tty: move IO of master pty to be done with epoll
This moves all console code to use github.com/containerd/console library to
handle console I/O. Also move to use EpollConsole by default when user requests
a terminal so we can still cope when the other side temporarily goes away.

Signed-off-by: Daniel Dao <dqminh89@gmail.com>
2017-07-28 12:35:02 +01: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 tty: move IO of master pty to be done with epoll 2017-07-28 12:35:02 +01:00
console_linux.go tty: move IO of master pty to be done with epoll 2017-07-28 12:35:02 +01:00
console_unix.go tty: move IO of master pty to be done with epoll 2017-07-28 12:35:02 +01:00
console_windows.go tty: move IO of master pty to be done with epoll 2017-07-28 12:35:02 +01:00
tc_darwin.go tty: move IO of master pty to be done with epoll 2017-07-28 12:35:02 +01:00
tc_freebsd.go tty: move IO of master pty to be done with epoll 2017-07-28 12:35:02 +01:00
tc_linux.go tty: move IO of master pty to be done with epoll 2017-07-28 12:35:02 +01: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)