https://github.com/containerd/console
console package for Go
https://github.com/containerd/console
golang pty
Last synced: 3 months ago
JSON representation
console package for Go
- Host: GitHub
- URL: https://github.com/containerd/console
- Owner: containerd
- License: apache-2.0
- Created: 2017-01-26T17:56:11.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2024-03-22T17:46:45.000Z (over 1 year ago)
- Last Synced: 2024-10-29T20:33:09.750Z (11 months ago)
- Topics: golang, pty
- Language: Go
- Homepage:
- Size: 1.22 MB
- Stars: 178
- Watchers: 22
- Forks: 54
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# console
[](https://pkg.go.dev/github.com/containerd/console)
[](https://github.com/containerd/console/actions?query=workflow%3ACI)
[](https://goreportcard.com/report/github.com/containerd/console)Golang package for dealing with consoles. Light on deps and a simple API.
## Modifying the current process
```go
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](./LICENSE).
As a containerd sub-project, you will find the:
* [Project governance](https://github.com/containerd/project/blob/main/GOVERNANCE.md),
* [Maintainers](https://github.com/containerd/project/blob/main/MAINTAINERS),
* and [Contributing guidelines](https://github.com/containerd/project/blob/main/CONTRIBUTING.md)information in our [`containerd/project`](https://github.com/containerd/project) repository.