1Pod::Text::Termcap(3pm)Perl Programmers Reference GuidePod::Text::Termcap(3pm)
2
3
4
6 Pod::Text::Termcap - Convert POD data to ASCII text with format escapes
7
9 use Pod::Text::Termcap;
10 my $parser = Pod::Text::Termcap->new (sentence => 0, width => 78);
11
12 # Read POD from STDIN and write to STDOUT.
13 $parser->parse_from_filehandle;
14
15 # Read POD from file.pod and write to file.txt.
16 $parser->parse_from_file ('file.pod', 'file.txt');
17
19 Pod::Text::Termcap is a simple subclass of Pod::Text that highlights
20 output text using the correct termcap escape sequences for the current
21 terminal. Apart from the format codes, it in all ways functions like
22 Pod::Text. See Pod::Text for details and available options.
23
25 This module uses Term::Cap to retrieve the formatting escape sequences
26 for the current terminal, and falls back on the ECMA-48 (the same in
27 this regard as ANSI X3.64 and ISO 6429, the escape codes also used by
28 DEC VT100 terminals) if the bold, underline, and reset codes aren't set
29 in the termcap information.
30
32 Pod::Text, Pod::Parser, Term::Cap
33
34 The current version of this module is always available from its web
35 site at <http://www.eyrie.org/~eagle/software/podlators/>. It is also
36 part of the Perl core distribution as of 5.6.0.
37
39 Russ Allbery <rra@stanford.edu>.
40
42 Copyright 1999, 2001, 2002 by Russ Allbery <rra@stanford.edu>.
43
44 This program is free software; you may redistribute it and/or modify it
45 under the same terms as Perl itself.
46
47
48
49perl v5.8.8 2001-09-21 Pod::Text::Termcap(3pm)