containerd/console
GitHub: containerd/console
containerd/console 是一个轻量级的 Go 终端控制台操作库,提供终端模式切换、窗口尺寸管理等底层 TTY 操作能力。
Stars: 199 | Forks: 57
# 控制台
[](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 包。依赖轻量且 API 简单。
## 修改当前进程
```
current := console.Current()
defer current.Reset()
if err := current.SetRaw(); err != nil {
}
ws, err := current.Size()
current.Resize(ws)
```
## 项目详情
console 是一个 containerd 子项目,采用 [Apache 2.0 许可证](./LICENSE) 授权。
作为 containerd 的子项目,您可以在我们的 [`containerd/project`](https://github.com/containerd/project) 仓库中找到以下信息:
* [项目治理](https://github.com/containerd/project/blob/main/GOVERNANCE.md),
* [维护者](https://github.com/containerd/project/blob/main/MAINTAINERS),
* 和[贡献指南](https://github.com/containerd/project/blob/main/CONTRIBUTING.md)
标签:containerd, EVTX分析, Go, Ruby工具, 包/库, 日志审计, 系统编程, 终端/控制台