ansi_available: Attempt to Detect Whether Terminal Supports ANSI Styles

Description Usage Arguments Value

Description

Loosely based on crayon:::has_color, but with some modifications. In particular we test for interactive sessions instead of checking that stdout is a terminal to allow running with captured output.

Usage

1
ansi_available(force = getOption("ansistyle.enabled"))

Arguments

force

TRUE, FALSE, or NULL; set to NULL to allow auto-detection (default), or TRUE or FALSE to force this function to return TRUE or FALSE

Value

TRUE or FALSE


brodieG/ansistyle documentation built on May 13, 2019, 7:45 a.m.