Antsy
view release on metacpan or search on metacpan
lib/Antsy.pm view on Meta::CPAN
use v5.26;
package Antsy;
use strict;
use warnings;
use utf8;
use experimental qw(signatures);
use Carp qw(carp);
use Exporter qw(import);
our( @EXPORT, @EXPORT_OK, %EXPORT_TAGS );
our $VERSION = '0.907';
=encoding utf8
=head1 NAME
Antsy - Streaming ANSI escape sequences
=head1 SYNOPSIS
use Antsy qw(:all);
print bold, underline, text_red, "Hello", reset;
=head1 DESCRIPTION
Subroutines to deal with ANSI terminal sequences. You can emit these
without knowing what's coming up.
=head2 Yet another module?
There are several modules that come close to this, but so far
everything is incomplete or requires you to know all of the upcoming
text ahead of time so you can use of it as an argument to a function.
I want to emit the sequence in a stream without knowing what's coming
up.
=over 4
=item * L<Term::ANSIColor>
Wraps ANSI color stuff around text. This comes with Perl v5.10 and
later.
=item * L<Text::ANSI::Util>
Routines for dealing with text that contains ANSI code. For example,
ignore the ANSI sequences in computing length.
=item * L<Text::ANSI::Printf>
I don't really know what this does.
=item * L<Term::ANSIScreen>
=back
=head2 Methods
=over 4
=item * bg_256( N )
=item * bg_rgb
=item * bg_black
=item * bg_blue
=item * bg_cyan
=item * bg_green
( run in 2.282 seconds using v1.01-cache-2.11-cpan-600a1bdf6e4 )