is_ansi_tty: Detect if a stream support ANSI escape characters

Description Usage Arguments Value See Also Examples

View source: R/tty.R

Description

We check that all of the following hold:

Usage

1
is_ansi_tty(stream = "auto")

Arguments

stream

The stream to inspect or manipulate, an R connection object. It can also be a string, one of "auto", "message", "stdout", "stderr". "auto" will select stdout() if the session is interactive and there are no sinks, otherwise it will select stderr().

Value

TRUE or FALSE.

See Also

Other terminal capabilities: is_dynamic_tty()

Examples

1

RonMobile/cli documentation built on Dec. 18, 2021, 11 a.m.