RosettaCodeData/Task/Terminal-control-Unicode-output/Pluto/terminal-control-unicode-output.pluto
2025-08-11 18:05:26 -07:00

10 lines
292 B
Text

local function supports_unicode()
local lang = os.getenv("LANG")
return "UTF-8" in lang or "utf-8" in lang
end
if supports_unicode() then
print($"Unicode is supported on this terminal and U+25B3 is : {"\u{25B3}"}")
else
error("Unicode is not supported on this terminal")
end