Skip to content

Commit 6e35d0d

Browse files
authored
Merge pull request #825 from r-lib/fix/rstudio-ansi-detect
Correctly detect ANSI tty support in new (dev) RStudio
2 parents 824d6ef + 28ca7f4 commit 6e35d0d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

R/aab-rstudio-detect.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ rstudio <- local({
224224
list(
225225
type = "rstudio_console",
226226
dynamic_tty = TRUE,
227-
ansi_tty = FALSE,
227+
ansi_tty = data$ver >= "2026.06",
228228
ansi_color = data$envs[["RSTUDIO_CONSOLE_COLOR"]] != "",
229229
num_colors = as.integer(data$envs[["RSTUDIO_CONSOLE_COLOR"]]),
230230
hyperlink = data$envs[["RSTUDIO_CLI_HYPERLINKS"]] != "",

0 commit comments

Comments
 (0)