Jump to content

Terminal control/Unicode output: Difference between revisions

Rename Perl 6 -> Raku, alphabetize, minor clean-up
(Add Jsish)
(Rename Perl 6 -> Raku, alphabetize, minor clean-up)
Line 327:
<pre>UTF supported △
</pre>
 
=={{header|M2000 Interpreter}}==
M2000 Environment has own console (with graphics support)
Line 342 ⟶ 343:
Checkit
</lang>
 
=={{header|Mathematica}}==
<lang Mathematica>If[StringMatchQ[$CharacterEncoding, "UTF*"], Print[FromCharacterCode[30000]], Print["UTF-8 capable terminal required"]]
Line 401 ⟶ 403:
 
print "△ \n";</lang>
=={{header|Perl 6}}==
<lang perl6>die "Terminal can't handle UTF-8"
unless first(*.defined, %*ENV<LC_ALL LC_CTYPE LANG>) ~~ /:i 'utf-8'/;
say "△";</lang>
{{out}}
<pre>△</pre>
 
=={{header|Phix}}==
Line 487 ⟶ 483:
"\u25b3" "No Unicode detected."))
</lang>
 
=={{header|Perl 6Raku}}==
(formerly Perl 6)
<lang perl6>die "Terminal can't handle UTF-8"
unless first(*.defined, %*ENV<LC_ALL LC_CTYPE LANG>) ~~ /:i 'utf-8'/;
say "△";</lang>
{{out}}
<pre>△</pre>
 
=={{header|Ruby}}==
10,333

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.