mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-19 09:57:45 +08:00

full diff: https://github.com/containerd/console/compare/v1.0.3...8f6c4e4faef5a326d2cd907097d04c0239ee5e2f Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
30 lines
1.2 KiB
Markdown
30 lines
1.2 KiB
Markdown
# 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.
|