func Current() (c Console) {
	var err error
	for _, s := range []*os.File{os.Stderr, os.Stdout, os.Stdin} {
		if c, err = ConsoleFromFile(s); err == nil {
			return c
		}
	}
	panic(err)
}
Current returns the current process' console
package console
import (
	"errors"
	"io"
	"os"
)
var ErrNotAConsole = errors.New("provided file is not a console")
type File interface {
	io.ReadWriteCloser
	Fd() uintptr
	Name() string
}
type Console interface {
	File
	Resize(WinSize) error
	ResizeFrom(Console) error
	SetRaw() error
	DisableEcho() error
	Reset() error
	Size() (WinSize, error)
}
type WinSize struct {
	Height uint16
	Width uint16
	x     uint16
	y     uint16
}