Anonymous user
Terminal control/Unicode output: Difference between revisions
added Elixir
(Add Nimrod) |
(added Elixir) |
||
Line 145:
{{out}}
<pre>"Unicode is supported on this terminal and U+25B3 is : △"</pre>
=={{header|Elixir}}==
<lang elixir>
if ["LANG", "LC_CTYPE", "LC_ALL"]
|> Enum.map(&System.get_env/1)
|> Enum.any?(&(&1 != nil and String.contains?(&1, "UTF")))
do
IO.puts "This terminal supports Unicode: \x{25b3}"
else
raise "This terminal does not support Unicode."
end
</lang>
=={{header|FunL}}==
|