Skip to main content

is_terminal

Function is_terminal 

Source
pub fn is_terminal<W>(_w: &W) -> bool
Expand description

Ported from isTerminal. Go checks whether the underlying io.Writer is backed by a real TTY (via golang.org/x/term.IsTerminal on the file descriptor); a Vec<u8> buffer or other non-fd-backed writer is never a terminal.