Pod::Simple::Text::Termcap - Convert POD data to ASCII text with format escapes
Version 0.01
Convert POD data to ASCII text with format escapes
( my $pod_text = <<'__POD__' ) =~ s/^[ \t]+//mg; =head1 Some pod F<foo> bla bla B<bar> Some more text =cut __POD__ # use Pod::Simple::Text::Termcap; my $parser = Pod::Simple::Text::Termcap->new; $parser->parse_string_document( $pod_text); $parser->output_string( \my $out ); print($out); # use it as a filter use Pod::Simple::Text::Termcap; Pod::Simple::Text::Termcap->filter( \$pod_text );
Pod::Simple::Text::Termcap is a subclass of Pod::Simple::Text. This module is just a drop in replacement for Pod::Simple::Text. Pod::Simple::Text::Termcap prints headlines and B<> tags bold. I<> and F<> tags are underlined.
Pod::Simple::Text::Termcap
Pod::Simple::Text
B<>
I<>
F<>
Thats all. Pretty close to what Pod::Text::Termcap do for Pod::Text.
Pod::Text::Termcap
Pod::Text
This module uses Term::Cap to retrieve the formatting escape sequences for the current terminal, and falls back on the ECMA-48 (the same in this regard as ANSI X3.64 and ISO 6429, the escape codes also used by DEC VT100 terminals) if the bold, underline, and reset codes aren't set in the termcap information.
Pod::Simple, Pod::Simple::Text, Pod::Text, Pod::Text::Termcap
Pod::Simple
Nothing
Boris Zentner, <bzm@2bz.de>
<bzm@2bz.de>
Please report any bugs or feature requests to bug-pod-simple-text-termcap@rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Pod-Simple-Text-Termcap. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-pod-simple-text-termcap@rt.cpan.org
Parts stolen from Russ Allbery's Pod::Text::Termcap.
Copyright 2005 Boris Zentner, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Pod::Simple::Text::Termcap, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Pod::Simple::Text::Termcap
CPAN shell
perl -MCPAN -e shell install Pod::Simple::Text::Termcap
For more information on module installation, please visit the detailed CPAN module installation guide.