hasColorConsole {rstudioapi}R Documentation

Check if Console Supports ANSI Color Escapes

Description

Check if Console Supports ANSI Color Escapes

Usage

hasColorConsole()

Value

a boolean

Note

The hasColorConsole function was added in version 1.1.216 of RStudio.

Examples

## Not run: 
if (rstudioapi::hasColorConsole()) {
  message("RStudio console supports ANSI color sequences.")
}

## End(Not run)


[Package rstudioapi version 0.7 Index]