# $File: //member/autrijus/HTML-FromANSI/lib/HTML/FromANSI.pm $ $Author: autrijus $
# $Revision: #3 $ $Change: 7867 $ $DateTime: 2003/09/04 17:11:36 $
package HTML::FromANSI;
$HTML::FromANSI::VERSION = '1.01';
use strict;
use base qw/Exporter/;
use vars qw/@EXPORT @EXPORT_OK @Color %Options/;
use Term::VT102;
use HTML::Entities;
=head1 NAME
HTML::FromANSI - Mark up ANSI sequences as HTML
=head1 VERSION
This document describes version 1.01 of HTML::FromANSI, released
September 5, 2003.
=head1 SYNOPSIS
use HTML::FromANSI;
use Term::ANSIColor;
$HTML::FromANSI::Options{fill_cols} = 1; # fill all 80 cols
print ansi2html(color('bold blue'), "This text is bold blue.");
=head1 DESCRIPTION
This small module converts ANSI text sequences to corresponding HTML
codes, using stylesheets to control color and blinking properties.
It exports C by default, which takes an array, joins it
it into a single scalar, and returns its HTML rendering.
From version 0.99 and above, this module has been changed to use the
excellent B module, so cursor movement and other terminal
control codes are properly handled.
If you want to generate these movement codes in perl, please take a
look at my B module.
=head1 OPTIONS
There are various options stored in the C<%HTML::FromANSI::Options>
hash; you can also enter them explicitly from the C