Terminal control/Unicode output: Difference between revisions
Added Arturo implementation
(Add BaCon) |
Drkameleon (talk | contribs) (Added Arturo implementation) |
||
Line 5:
Note that it is permissible to use system configuration data to determine terminal capabilities if the system provides such a facility.
=={{header|Arturo}}==
<lang rebol>canHandleUnicode?: function [][
any? @[
if key? env "LC_ALL" -> contains? lower get env "LC_ALL" "utf-8"
if key? env "LC_CTYPE" -> contains? lower get env "LC_CTYPE" "utf-8"
if key? env "LANG" -> contains? lower get env "LANG" "utf-8"
]
]
if? canHandleUnicode? ->
print "Terminal handle unicode and U+25B3 is: △"
else ->
print "Unicode is not supported on this terminal"</lang>
{{out}}
<pre>Terminal handle unicode and U+25B3 is: △</pre>
=={{header|AutoHotkey}}==
|