Documentation
¶
Overview ¶
Package term wraps the local terminal for `mistctl attach`: raw mode, size, and ANSI output support on Windows consoles.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Terminal ¶
type Terminal interface {
// IsTerminal reports whether stdin and stdout are both terminals.
IsTerminal() bool
// MakeRaw puts the terminal in raw mode (and, on Windows, enables ANSI
// escape processing on the console) and returns a restore function.
MakeRaw() (restore func(), err error)
// Size returns the terminal size in columns and rows.
Size() (cols, rows int, ok bool)
}
Terminal is the local terminal attached to a remote shell.
Click to show internal directories.
Click to hide internal directories.