has_color()
TRUE
if the current R session supports color.
crayon.enabled
option is set to TRUE
with options()
, then TRUE
is returned. If it is
set to something else than TRUE
(typically FALSE
),
then FALSE
is returned.
FALSE
is returned.
TRUE
is returned
if running in ConEmu (https://conemu.github.io/) or
cmder (http://cmder.net) with ANSI color support.
Otherwise FALSE
is returned.
COLORTERM
environment variable is
set, TRUE
is returned.
TERM
environment variable starts
with screen
, xterm
or vt100
, or matches
color
, ansi
, cygwin
or linux
(with case insentive matching), then TRUE
is returned.
FALSE
is returned.