RosettaCodeData/Task/Terminal-control-Unicode-output/R/terminal-control-unicode-output.r
2023-07-01 13:44:08 -04:00

5 lines
226 B
R

if (any(grepl("UTF", toupper(Sys.getenv(c("LANG", "LC_ALL", "LC_CTYPE")))))) {
cat("Unicode is supported on this terminal and U+25B3 is : \u25b3\n")
} else {
cat("Unicode is not supported on this terminal.")
}