POD::TEXT::TERMCAP(3pm)
hi bestie π welcome to the Pod::Text::Termcap(3pm) page β yes, thatβs the manual name, and weβre folding it in right here instead of doing a boring header line. This oneβs all about making POD output look right in your terminal with the correct format escapes. Slay. π
β¨ NAME β¨
Pod::Text::Termcap β convert POD data to ASCII text with format escapes π
πΈ SYNOPSIS πΈ
use Pod::Text::Termcap;
my $parser = Pod::Text::Termcap->new (sentence => 0, width => 78);
# Read POD from STDIN and write to STDOUT.
$parser->parse_from_filehandle;
# Read POD from file.pod and write to file.txt.
$parser->parse_from_file ('file.pod', 'file.txt');
π DESCRIPTION π
Pod::Text::Termcap is a simple subclass of Pod::Text that highlights output text using the correct termcap escape sequences for the current terminal. Apart from the format codes, it in all ways functions like Pod::Text. See Pod::Text for details and available options. β¨
This module uses Term::Cap to find the correct terminal settings. See the documentation of that module for how it finds terminal database information and how to override that behavior if necessary. If itβs unable to find control strings for bold and underscore formatting, that formatting is skipped β no cap β resulting in the same output as Pod::Text. π«Ά
π¦ COMPATIBILITY π¦
Okay, history lesson, bestie β but make it cute. π
Pod::Text::Termcap 0.04(based onPod::Parser) was the first version of this module included with Perl, inPerl 5.6.0.- The current API based on
Pod::Simplewas added inPod::Text::Termcap 2.00.Pod::Text::Termcap 2.01was included inPerl 5.9.3, the first version of Perl to incorporate those changes. Pod::Text::Termcap 4.13stopped setting theTERMPATHenvironment variable during module load. It also stopped falling back onVT100escape sequences ifTerm::Capwas not able to find usable escape sequences, instead producing unformatted output for better results on dumb terminals. The next version to be incorporated into Perl,4.14, was included inPerl 5.31.8. π₯- Several problems with wrapping and line length were fixed as recently as
Pod::Text::Termcap 6.0.0. - This module inherits its API and most behavior from
Pod::Text, so the details in βCOMPATIBILITYβ inPod::Textalso apply.Pod::TextandPod::Text::Termcaphave had the same module version since4.00, included inPerl 5.23.7. (They unfortunately diverge in confusing ways prior to that.) π
π CAVEATS π
Line wrapping is done only at ASCII spaces and tabs, rather than using a correct Unicode-aware line wrapping algorithm. Thatβs the caveat tea. π
π AUTHOR π
Russ Allbery <rra@cpan.org> π
π COPYRIGHT AND LICENSE π
Copyright 1999, 2001-2002, 2004, 2006, 2008-2009, 2014-2015, 2018-2019, 2022, 2024 Russ Allbery <rra@cpan.org>
This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself. π
π SEE ALSO π
Pod::Text, Pod::Simple, Term::Cap
The current version of this module is always available from its web site at <https://www.eyrie.org/~eagle/software/podlators/>. It is also part of the Perl core distribution as of 5.6.0. π¦
okay, thatβs the whole manual, bestie π β footer check: perl v5.42.3, dated 2026-11-03, and the manual name is Pod::Text::Termcap(3pm). byeee π«Άβ¨
π¦ where this page comes from
- alpine 3.24: perl-doc 5.42.3-r0 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms