hasColorConsole: Check if console supports ANSI color escapes.

View source: R/stubs.R

hasColorConsoleR Documentation

Check if console supports ANSI color escapes.

Description

Check if the RStudio console supports ANSI color escapes.

Usage

hasColorConsole()

Value

TRUE if ANSI color escapes are supported; FALSE otherwise.

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)



rstudioapi documentation built on Oct. 23, 2024, 1:07 a.m.