Versions in this module Expand all Collapse all v0 v0.0.2 Mar 17, 2022 v0.0.1 Nov 8, 2021 Changes in this version + const TERM_CODE_DOWN + const TERM_CODE_LEFT + const TERM_CODE_RIGHT + const TERM_CODE_UP + func AllowsColorOutput(w io.Writer) bool + func GetTerminalSize(w io.Writer) (int, int, error) + func Getch() (ascii byte, keyCode int, err error) + func IsTerminal(i interface{}) bool + func NewMaxWidthWriter(w io.Writer, maxWidth uint) io.Writer + func NewPunchCardWriter(w io.Writer) io.Writer + func NewResponsiveWriter(w io.Writer) io.Writer + func NewWordWrapWriter(w io.Writer, limit uint) io.Writer + type SafeFunc func() error + type TTY struct + In io.Reader + Out io.Writer + Parent *interrupt.Handler + Raw bool + TryDev bool + func (t *TTY) MonitorSize(initialSizes ...*TerminalSize) TerminalSizeQueue + func (t TTY) GetSize() *TerminalSize + func (t TTY) IsTerminalIn() bool + func (t TTY) IsTerminalOut() bool + func (t TTY) Safe(fn SafeFunc) error + type TerminalSize struct + Height uint16 + Width uint16 + func GetSize(fd uintptr) *TerminalSize + type TerminalSizeQueue interface + Next func() *TerminalSize