Terminal control/Unicode output: Difference between revisions
Content added Content deleted
(Add Nimrod) |
(added Elixir) |
||
Line 145: | Line 145: | ||
{{out}} |
{{out}} |
||
<pre>"Unicode is supported on this terminal and U+25B3 is : △"</pre> |
<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}}== |
=={{header|FunL}}== |