ansi2html - Convert ANSI sequence to HTML
ansi2html [ -p -f -c ] [ infile ] [ outfile ]
This script takes one input file containing text with ANSI sequences, and outputs the converted HTML code into another file.
If outfile is omitted, it defaults to STDOUT. If infile is omitted, it defaults to STDIN.
Note that this script will automatically set the fill_cols option to 1, filling empty columns with space characters.
fill_cols
If the -p option is specified, it will print HTML header and footers.
If the -f option is specified columns will not be filled.
If the -c option is specified the cursor will be shown.
HTML::FromANSI
Audrey Tang <audreyt@audreyt.org>
Copyright 2001, 2002 by Audrey Tang <audreyt@audreyt.org>.
Copyright 2007 by Yuval Kogman <nothingmuch@woobling.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html
To install HTML::FromANSI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::FromANSI
CPAN shell
perl -MCPAN -e shell install HTML::FromANSI
For more information on module installation, please visit the detailed CPAN module installation guide.