-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Detection of ANSI color support in console has chhanged? #5445
Comments
Interesting! When I use Positron 2024.11.0 (Universal) build 140 on a Mac, I don't see the green: Do you mind reinstalling 2024.11.0 build 140 and finding out exactly how |
Sys.getenv("RSTUDIO", "") == ""
#> [1] TRUE
Sys.getenv("RSTUDIO_CONSOLE_COLOR", "")
#> [1] ""
requireNamespace("rstudioapi", quietly = TRUE) &&
rstudioapi::isAvailable() &&
rstudioapi::hasFun("getConsoleHasColor")
#> [1] FALSE
getOption("crayon.enabled")
#> [1] FALSE
sink.number() == 0
#> [1] FALSE
isatty(stdout())
#> [1] FALSE
Sys.getenv("ConEmuANSI") == "ON"
#> [1] FALSE
Sys.getenv("CMDER_ROOT")
#> [1] ""
"COLORTERM" %in% names(Sys.getenv())
#> [1] TRUE
Sys.getenv("TERM") == "dumb"
#> [1] FALSE
grepl("^screen|^xterm|^vt100|color|ansi|cygwin|linux", Sys.getenv("TERM"))
#> [1] FALSE Created on 2024-11-22 with reprex v2.1.1
Sys.getenv("RSTUDIO", "") == ""
#> [1] TRUE
Sys.getenv("RSTUDIO_CONSOLE_COLOR", "")
#> [1] ""
requireNamespace("rstudioapi", quietly = TRUE) &&
rstudioapi::isAvailable() &&
rstudioapi::hasFun("getConsoleHasColor")
#> [1] FALSE
getOption("crayon.enabled")
#> [1] FALSE
sink.number() == 0
#> [1] FALSE
isatty(stdout())
#> [1] FALSE
Sys.getenv("ConEmuANSI") == "ON"
#> [1] FALSE
Sys.getenv("CMDER_ROOT")
#> [1] ""
"COLORTERM" %in% names(Sys.getenv())
#> [1] TRUE
Sys.getenv("TERM") == "dumb"
#> [1] FALSE
grepl("^screen|^xterm|^vt100|color|ansi|cygwin|linux", Sys.getenv("TERM"))
#> [1] FALSE Created on 2024-11-22 with reprex v2.1.1 |
hm, I don't see any differences... |
Ok, adding |
This example used to work
Following setup
Reprex
Result (as expected)
New Positron version
Result (not expected)
I think it's because this code no longer works properly with the latest Positron version:
Created on 2024-11-21 with reprex v2.1.1
Could be that this is no bug, but Positron just changed its "identification"?
The text was updated successfully, but these errors were encountered: