Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Stderr io.Writer = stderr{}
Writer to what Route last sent standard error to, else to whatever os.Stderr holds at the moment of each write
var Stdout io.Writer = stdout{}
Writer to what Route last sent standard output to, else to whatever os.Stdout holds at the moment of each write
Functions ¶
func As ¶
Capability T of a stream: the stream itself when it has it, else the first stream down its Unwrap() io.Writer or Unwrap() io.Reader chain that does
func Fd ¶
Descriptor of a stream or of the first stream it wraps that has one, false when none has one; an *os.File is asked through SyscallConn, so its blocking mode and deadlines stay as they are
func IsTerminal ¶
Whether a stream is a terminal: the IsTerminal() bool answer of the stream or of what it wraps, else whether its descriptor is a terminal or a Cygwin or MSYS terminal pipe
func Route ¶
Sends what is written to Stdout and Stderr to the given writers until restore is called, a nil writer leaving that stream as it is; routes nest, the latest one still in place answers, and restoring them in any order leaves the others in place. Fd, IsTerminal and As on Stdout and Stderr keep answering for os.Stdout and os.Stderr, and a destination must not write to Stdout or Stderr itself
func Size ¶
Columns and lines of the terminal: COLUMNS and LINES when they hold positive whole numbers, else the size of the terminal on stdout, else the fallback
Types ¶
This section is empty.