Blame README.md

Packit Service d987f3
# Term::ANSIColor 4.06
Packit Service d987f3
Packit Service d987f3
Copyright 1996-1998, 2000-2002, 2005-2006, 2008-2016 Russ Allbery
Packit Service d987f3
<rra@cpan.org>.  Copyright 1996 Zenin.  Copyright 2012 Kurt Starsinic
Packit Service d987f3
<kstarsinic@gmail.com>.  This software is distributed under the same terms
Packit Service d987f3
as Perl itself.  Please see the section [License](#license) below for more
Packit Service d987f3
information.
Packit Service d987f3
Packit Service d987f3
## Blurb
Packit Service d987f3
Packit Service d987f3
Term::ANSIColor provides constants and simple functions for setting ANSI
Packit Service d987f3
text attributes, most notably colors.  It can be used to set the current
Packit Service d987f3
text attributes or to apply a set of attributes to a string and reset the
Packit Service d987f3
current text attributes at the end of that string.  Eight-color,
Packit Service d987f3
sixteen-color, and 256-color escape sequences are all supported.
Packit Service d987f3
Packit Service d987f3
## Description
Packit Service d987f3
Packit Service d987f3
This Perl module is a simple and convenient interface to the ANSI terminal
Packit Service d987f3
escape sequences for color (from ECMA-48, also included in ISO 6429).  The
Packit Service d987f3
color sequences are provided in two forms, either as constants for each
Packit Service d987f3
color or via a function that takes the names of colors and returns the
Packit Service d987f3
appropriate escape codes or wraps them around the provided text.  The
Packit Service d987f3
non-color text style codes from ANSI X3.64 (bold, dark, underline, and
Packit Service d987f3
reverse, for example), which were also included in ECMA-48 and ISO 6429,
Packit Service d987f3
are also supported.  Also supported are the extended colors used for
Packit Service d987f3
sixteen-color and 256-color emulators.
Packit Service d987f3
Packit Service d987f3
This module is very stable, and I've used it in a wide variety of
Packit Service d987f3
applications.  It has been included in the core Perl distribution starting
Packit Service d987f3
with version 5.6.0, so you don't need to download and install it yourself
Packit Service d987f3
unless you have an old version of Perl or need a newer version of the
Packit Service d987f3
module than comes with your version of Perl.  I continue to maintain it as
Packit Service d987f3
a separate module, and the version included in Perl is resynced with mine
Packit Service d987f3
before each release.
Packit Service d987f3
Packit Service d987f3
The original module came out of a discussion in comp.lang.perl.misc and is
Packit Service d987f3
a combination of two approaches, one with constants by Zenin and one with
Packit Service d987f3
functions that I wrote.  I offered to maintain a combined module that
Packit Service d987f3
included both approaches.
Packit Service d987f3
Packit Service d987f3
## Requirements
Packit Service d987f3
Packit Service d987f3
Term::ANSIColor is written in pure Perl and has no module dependencies
Packit Service d987f3
that aren't found in Perl core.  It should work with any version of Perl
Packit Service d987f3
after 5.6, although it hasn't been tested with old versions in some time.
Packit Service d987f3
Packit Service d987f3
In order to actually see color, you will need to use a terminal window
Packit Service d987f3
that supports the ANSI escape sequences for color.  Any recent version of
Packit Service d987f3
xterm, most xterm derivatives and replacements, and most telnet and ssh
Packit Service d987f3
clients for Windows and Macintosh should work, as will the MacOS X
Packit Service d987f3
Terminal application (although Terminal.app reportedly doesn't support 256
Packit Service d987f3
colors).  The console windows for Windows NT and Windows 2000 will not
Packit Service d987f3
work, as they do not even attempt to support ANSI X3.64.
Packit Service d987f3
Packit Service d987f3
For a complete (to my current knowledge) compatibility list, see the
Packit Service d987f3
Term::ANSIColor module documentation.  If you have any additions to the
Packit Service d987f3
table in the documentation, please send them to me.
Packit Service d987f3
Packit Service d987f3
The test suite requires Test::More (part of Perl since 5.6.2).  The
Packit Service d987f3
following additional Perl modules will be used by the test suite if
Packit Service d987f3
present:
Packit Service d987f3
Packit Service d987f3
* Devel::Cover
Packit Service d987f3
* Test::MinimumVersion
Packit Service d987f3
* Test::Perl::Critic
Packit Service d987f3
* Test::Pod
Packit Service d987f3
* Test::Pod::Coverage
Packit Service d987f3
* Test::Spelling
Packit Service d987f3
* Test::Strict
Packit Service d987f3
* Test::Synopsis
Packit Service d987f3
* Test::Warn
Packit Service d987f3
Packit Service d987f3
All are available on CPAN.  Those tests will be skipped if the modules are
Packit Service d987f3
not available.
Packit Service d987f3
Packit Service d987f3
To enable tests that don't detect functionality problems but are used to
Packit Service d987f3
sanity-check the release, set the environment variable `RELEASE_TESTING`
Packit Service d987f3
to a true value.  To enable tests that may be sensitive to the local
Packit Service d987f3
environment or that produce a lot of false positives without uncovering
Packit Service d987f3
many problems, set the environment variable `AUTHOR_TESTING` to a true
Packit Service d987f3
value.
Packit Service d987f3
Packit Service d987f3
## Building and Installation
Packit Service d987f3
Packit Service d987f3
Term::ANSIColor uses ExtUtils::MakeMaker and can be installed using the
Packit Service d987f3
same process as any other ExtUtils::MakeMaker module:
Packit Service d987f3
Packit Service d987f3
```
Packit Service d987f3
    perl Makefile.PL
Packit Service d987f3
    make
Packit Service d987f3
    make test
Packit Service d987f3
    make install
Packit Service d987f3
```
Packit Service d987f3
Packit Service d987f3
You'll probably need to do the last as root unless you're installing into
Packit Service d987f3
a local Perl module tree in your home directory.
Packit Service d987f3
Packit Service d987f3
## Support
Packit Service d987f3
Packit Service d987f3
The [Term::ANSIColor web
Packit Service d987f3
page](https://www.eyrie.org/~eagle/software/ansicolor/) will always have
Packit Service d987f3
the current version of this package, the current documentation, and
Packit Service d987f3
pointers to any additional resources.
Packit Service d987f3
Packit Service d987f3
For bug tracking, use the [CPAN bug
Packit Service d987f3
tracker](https://rt.cpan.org/Dist/Display.html?Name=Term-ANSIColor).
Packit Service d987f3
However, please be aware that I tend to be extremely busy and work
Packit Service d987f3
projects often take priority.  I'll save your mail and get to it as soon
Packit Service d987f3
as I can, but it may take me a couple of months.
Packit Service d987f3
Packit Service d987f3
## Source Repository
Packit Service d987f3
Packit Service d987f3
Term::ANSIColor is maintained using Git.  You can access the current
Packit Service d987f3
source on [GitHub](https://github.com/rra/ansicolor) or by cloning the
Packit Service d987f3
repository at:
Packit Service d987f3
Packit Service d987f3
https://git.eyrie.org/git/perl/ansicolor.git
Packit Service d987f3
Packit Service d987f3
or [view the repository on the
Packit Service d987f3
web](https://git.eyrie.org/?p=perl/ansicolor.git).
Packit Service d987f3
Packit Service d987f3
The eyrie.org repository is the canonical one, maintained by the author,
Packit Service d987f3
but using GitHub is probably more convenient for most purposes.  Pull
Packit Service d987f3
requests are gratefully reviewed and normally accepted.  It's probably
Packit Service d987f3
better to use the CPAN bug tracker than GitHub issues, though, to keep all
Packit Service d987f3
Perl module issues in the same place.
Packit Service d987f3
Packit Service d987f3
## License
Packit Service d987f3
Packit Service d987f3
The Term::ANSIColor package as a whole is covered by the following
Packit Service d987f3
copyright statement and license:
Packit Service d987f3
Packit Service d987f3
> Copyright 1996-1998, 2000-2002, 2005-2006, 2008-2016
Packit Service d987f3
>     Russ Allbery <rra@cpan.org>
Packit Service d987f3
>
Packit Service d987f3
> Copyright 1996
Packit Service d987f3
>     Zenin
Packit Service d987f3
>
Packit Service d987f3
> Copyright 2012
Packit Service d987f3
>     Kurt Starsinic <kstarsinic@gmail.com>
Packit Service d987f3
>
Packit Service d987f3
> This program is free software; you may redistribute it and/or modify it
Packit Service d987f3
> under the same terms as Perl itself.  This means that you may choose
Packit Service d987f3
> between the two licenses that Perl is released under: the GNU GPL and the
Packit Service d987f3
> Artistic License.  Please see your Perl distribution for the details and
Packit Service d987f3
> copies of the licenses.
Packit Service d987f3
>
Packit Service d987f3
> PUSH/POP support submitted 2007 by openmethods.com voice solutions
Packit Service d987f3
Packit Service d987f3
Some files in this distribution are individually released under different
Packit Service d987f3
licenses, all of which are compatible with the above general package
Packit Service d987f3
license but which may require preservation of additional notices.  All
Packit Service d987f3
required notices, and detailed information about the licensing of each
Packit Service d987f3
file, are recorded in the LICENSE file.
Packit Service d987f3
Packit Service d987f3
For any copyright range specified by files in this package as YYYY-ZZZZ,
Packit Service d987f3
the range specifies every single year in that closed interval.