File: hasColorConsole.Rd

package info (click to toggle)
r-cran-rstudioapi 0.14-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 892 kB
  • sloc: makefile: 2
file content (29 lines) | stat: -rw-r--r-- 586 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stubs.R
\name{hasColorConsole}
\alias{hasColorConsole}
\title{Check if console supports ANSI color escapes.}
\usage{
hasColorConsole()
}
\value{
\code{TRUE} if ANSI color escapes are supported; \code{FALSE} otherwise.
}
\description{
Check if the RStudio console supports ANSI color escapes.
}
\note{
The \code{hasColorConsole} function was added in version 1.1.216 of
RStudio.
}
\examples{

\dontrun{
if (rstudioapi::hasColorConsole()) {
  message("RStudio console supports ANSI color sequences.")
}

}


}