runc/vendor/github.com/containerd/console
Peter Morjan 59e5b61c5c Update console dependency to fix runc exec on BE
This fixes a bug in the console package for big-endian architectures.
When creating a new pty the returned path to the new pty slave was
wrong for the second und all subsequent ptys.
In runc the exec subcommand failed with an runtime error such as
`container_linux.go:265: starting container process caused "open
/dev/pts/4294967296: no such file or directory"`.
The number is shifted by 32.

Signed-off-by: Peter Morjan <peter.morjan@de.ibm.com>
2018-02-21 10:43:06 +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 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 dependency to fix runc exec on BE 2018-02-21 10:43:06 +01: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)