summaryrefslogtreecommitdiff
path: root/vendor/github.com/containerd/console/README.md
blob: 4c56d9d134a9b83d38e57fbdaa8c67ff7c88a79f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# console

[![Build Status](https://travis-ci.org/containerd/console.svg?branch=master)](https://travis-ci.org/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)
```