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