pub fn is_terminal<W>(_w: &W) -> boolExpand 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.