#!/usr/bin/perl -w use strict; use Test::More tests => 2; use ok 'HTML::FromANSI'; my $h = HTML::FromANSI->new( cols => 1, # minimum width show_cursor => 1, ); my $text = $h->ansi_to_html("\x1b[1;34m", "This text is bold blue."); is($text, join('', split("\n", << '.')), 'basic conversion'); This text is bold blue.
.