Terminal control/Coloured text: Difference between revisions

Content deleted Content added
SqrtNegInf (talk | contribs)
m →‎{{header|Sidef}}: Fix link: Perl 6 --> Raku
SqrtNegInf (talk | contribs)
m →‎{{header|Perl}}: Fix comment: Perl 6 --> Raku
Line 1,128: Line 1,128:
print "$colors{$_}$_ text $clr\n" for sort keys %colors;
print "$colors{$_}$_ text $clr\n" for sort keys %colors;


# the Perl 6 code also works
# the Raku code also works
use feature 'say';
use feature 'say';
use Term::ANSIColor;
use Term::ANSIColor;