.github
ci: cap GITHUB_TOKEN to contents: read
.golangci.yml
golang-ci: sort linters, and replace golint (deprecated) with revive
console_linux_test.go
Only close epoller FD at most once.
console_linux.go
gha: update to go1.17 and gofmt
console_other.go
Add AIX platform support
console_test.go
Add AIX platform support
console_unix.go
Add AIX platform support
console_windows_test.go
Address review: test Write/Read delegation and document console limits
console_windows.go
Address review: test Write/Read delegation and document console limits
console.go
Merge pull request #73 from davidhsingyuchen/fix-typo
go.mod
Bump golang.org/x/sys from 0.0.0-20210124154548-22da62e12c0c to 0.1.0
go.sum
Bump golang.org/x/sys from 0.0.0-20210124154548-22da62e12c0c to 0.1.0
LICENSE
Add common project repo checks/README references
pty_aix.go
Add AIX platform support
pty_freebsd_cgo.go
gha: update to go1.17 and gofmt
pty_freebsd_nocgo.go
gha: update to go1.17 and gofmt
pty_unix.go
remove solaris implementation
pty_zos.go
zos: further reconcile implementation with other unices
README.md
[Doc]update links to main
tc_aix_cgo.go
Add AIX platform support
tc_aix_nocgo.go
Add AIX platform support
tc_darwin.go
tc: make internal handlers take File interface
tc_freebsd_cgo.go
tc: make internal handlers take File interface
tc_freebsd_nocgo.go
tc: make internal handlers take File interface
tc_linux.go
tc: make internal handlers take File interface
tc_netbsd.go
tc: make internal handlers take File interface
tc_openbsd_cgo.go
tc: make internal handlers take File interface
tc_openbsd_nocgo.go
tc: make internal handlers take File interface
tc_unix.go
Add AIX platform support
tc_zos.go
tc: make internal handlers take File interface

console

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)

Project details

console is a containerd sub-project, licensed under the Apache 2.0 license. As a containerd sub-project, you will find the:

information in our containerd/project repository.