Documentation ¶
Overview ¶
Package cwriter is a console writer abstraction for the underlying OS.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotTTY = errors.New("not a terminal")
ErrNotTTY not a TeleTYpewriter error.
Functions ¶
func IsTerminal ¶
IsTerminal returns whether the given file descriptor is a terminal.
Types ¶
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer is a buffered the writer that updates the terminal. The contents of writer will be flushed when Flush is called.
func (*Writer) ReadFrom ¶
ReadFrom reads from the provided io.Reader and writes to the underlying buffer.
Click to show internal directories.
Click to hide internal directories.