termcap.html
来自「perl教程」· HTML 代码 · 共 98 行
HTML
98 行
<?xml version="1.0" ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<!-- saved from url=(0017)http://localhost/ -->
<script language="JavaScript" src="../../../displayToc.js"></script>
<script language="JavaScript" src="../../../tocParas.js"></script>
<script language="JavaScript" src="../../../tocTab.js"></script>
<link rel="stylesheet" type="text/css" href="../../../scineplex.css">
<title>Pod::Text::Termcap - Convert POD data to ASCII text with format escapes</title>
<link rel="stylesheet" href="../../../Active.css" type="text/css" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:" />
</head>
<body>
<script>writelinks('__top__',3);</script>
<h1><a>Pod::Text::Termcap - Convert POD data to ASCII text with format escapes</a></h1>
<p><a name="__index__"></a></p>
<!-- INDEX BEGIN -->
<ul>
<li><a href="#name">NAME</a></li>
<li><a href="#synopsis">SYNOPSIS</a></li>
<li><a href="#description">DESCRIPTION</a></li>
<li><a href="#notes">NOTES</a></li>
<li><a href="#see_also">SEE ALSO</a></li>
<li><a href="#author">AUTHOR</a></li>
<li><a href="#copyright_and_license">COPYRIGHT AND LICENSE</a></li>
</ul>
<!-- INDEX END -->
<hr />
<p>
</p>
<h1><a name="name">NAME</a></h1>
<p>Pod::Text::Termcap - Convert POD data to ASCII text with format escapes</p>
<p>
</p>
<hr />
<h1><a name="synopsis">SYNOPSIS</a></h1>
<pre>
<span class="keyword">use</span> <span class="variable">Pod::Text::Termcap</span><span class="operator">;</span>
<span class="keyword">my</span> <span class="variable">$parser</span> <span class="operator">=</span> <span class="variable">Pod::Text::Termcap</span><span class="operator">-></span><span class="variable">new</span> <span class="operator">(</span><span class="string">sentence</span> <span class="operator">=></span> <span class="number">0</span><span class="operator">,</span> <span class="string">width</span> <span class="operator">=></span> <span class="number">78</span><span class="operator">);</span>
</pre>
<pre>
<span class="comment"># Read POD from STDIN and write to STDOUT.</span>
<span class="variable">$parser</span><span class="operator">-></span><span class="variable">parse_from_filehandle</span><span class="operator">;</span>
</pre>
<pre>
<span class="comment"># Read POD from file.pod and write to file.txt.</span>
<span class="variable">$parser</span><span class="operator">-></span><span class="variable">parse_from_file</span> <span class="operator">(</span><span class="string">'file.pod'</span><span class="operator">,</span> <span class="string">'file.txt'</span><span class="operator">);</span>
</pre>
<p>
</p>
<hr />
<h1><a name="description">DESCRIPTION</a></h1>
<p>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
<a href="../../../lib/Pod/Text.html">the Pod::Text manpage</a> for details and available options.</p>
<p>
</p>
<hr />
<h1><a name="notes">NOTES</a></h1>
<p>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.</p>
<p>
</p>
<hr />
<h1><a name="see_also">SEE ALSO</a></h1>
<p><a href="../../../lib/Pod/Text.html">the Pod::Text manpage</a>, <a href="../../../lib/Pod/Parser.html">the Pod::Parser manpage</a>, <a href="../../../lib/Term/Cap.html">the Term::Cap manpage</a></p>
<p>The current version of this module is always available from its web site at
<a href="http://www.eyrie.org/~eagle/software/podlators/">http://www.eyrie.org/~eagle/software/podlators/</a>. It is also part of the
Perl core distribution as of 5.6.0.</p>
<p>
</p>
<hr />
<h1><a name="author">AUTHOR</a></h1>
<p>Russ Allbery <<a href="mailto:rra@stanford.edu">rra@stanford.edu</a>>.</p>
<p>
</p>
<hr />
<h1><a name="copyright_and_license">COPYRIGHT AND LICENSE</a></h1>
<p>Copyright 1999, 2001, 2002 by Russ Allbery <<a href="mailto:rra@stanford.edu">rra@stanford.edu</a>>.</p>
<p>This program is free software; you may redistribute it and/or modify it
under the same terms as Perl itself.</p>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?