Terminal control/Unicode output: Difference between revisions

Content added Content deleted
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
done
end
done
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"
done
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
done</lang>
end</lang>


=={{header|UNIX Shell}}==
=={{header|UNIX Shell}}==