- or download this
use Tk::TextANSIColor;
...
$bold = color('bold');
$wid->insert('end', "$red red text $bold with bold\n");
- or download this
$text = $MW->TextANSIColor->pack;
tie *TEXT, "Tk::TextANSIColor", $text;
...
# Print information to all filehandles
print TEXT $info
print STDOUT $info
- or download this
$widget->getansi(index1, ?index2?)
- or download this
ANSIbd - bold
ANSIul - underline
ANSIfgCOL - foreground color
ANSIbgCOL - background color
- or download this
$widget->tagConfigure('ANSIfgred', -foreground => 'blue');