Terminal control/Unicode output: Difference between revisions
Content added Content deleted
m (→{{header|AWK}}) |
m (→{{header|AWK}}) |
||
Line 14: | Line 14: | ||
if (ENVIRON["LANG"] !~ "UTF") |
if (ENVIRON["LANG"] !~ "UTF") |
||
unicodeterm=0 # This terminal does not support Unicode |
unicodeterm=0 # This terminal does not support Unicode |
||
end |
|||
end |
|||
if (unicodeterm) |
if (unicodeterm) |
||
Line 24: | Line 24: | ||
# U+25B3 => UTF-8 342 226 263 |
# U+25B3 => UTF-8 342 226 263 |
||
"/usr/bin/printf \\342\\226\\263\\n" |
"/usr/bin/printf \\342\\226\\263\\n" |
||
end |
|||
else |
else |
||
do |
do |
||
print "HW65001 This program requires a Unicode compatible terminal"|"cat 1>&2" |
print "HW65001 This program requires a Unicode compatible terminal"|"cat 1>&2" |
||
exit 252 # Incompatible hardware |
exit 252 # Incompatible hardware |
||
end</lang> |
|||
=={{header|UNIX Shell}}== |
=={{header|UNIX Shell}}== |