• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..09-Apr-2021-

LICENSEH A D09-Apr-202110.5 KiB192160

README.mdH A D09-Apr-2021915 2819

console.goH A D09-Apr-20212.2 KiB8842

console_linux.goH A D09-Apr-20217.6 KiB281174

console_unix.goH A D09-Apr-20213.5 KiB159109

console_windows.goH A D09-Apr-20215.6 KiB217147

go.modH A D09-Apr-2021142 96

tc_darwin.goH A D09-Apr-20211.2 KiB4520

tc_freebsd.goH A D09-Apr-20211.3 KiB4620

tc_linux.goH A D09-Apr-20211.2 KiB4520

tc_netbsd.goH A D09-Apr-20211.3 KiB4620

tc_openbsd_cgo.goH A D09-Apr-20211.3 KiB5223

tc_openbsd_nocgo.goH A D09-Apr-20211.3 KiB4815

tc_solaris_cgo.goH A D09-Apr-20211.3 KiB5223

tc_solaris_nocgo.goH A D09-Apr-20211.3 KiB4815

tc_unix.goH A D09-Apr-20212.2 KiB9257

README.md

1# console
2
3[![Build Status](https://travis-ci.org/containerd/console.svg?branch=master)](https://travis-ci.org/containerd/console)
4
5Golang package for dealing with consoles.  Light on deps and a simple API.
6
7## Modifying the current process
8
9```go
10current := console.Current()
11defer current.Reset()
12
13if err := current.SetRaw(); err != nil {
14}
15ws, err := current.Size()
16current.Resize(ws)
17```
18
19## Project details
20
21console is a containerd sub-project, licensed under the [Apache 2.0 license](./LICENSE).
22As a containerd sub-project, you will find the:
23 * [Project governance](https://github.com/containerd/project/blob/master/GOVERNANCE.md),
24 * [Maintainers](https://github.com/containerd/project/blob/master/MAINTAINERS),
25 * and [Contributing guidelines](https://github.com/containerd/project/blob/master/CONTRIBUTING.md)
26
27information in our [`containerd/project`](https://github.com/containerd/project) repository.
28