App-colourhexdump

 view release on metacpan or  search on metacpan

lib/App/colourhexdump/DefaultColourProfile.pm  view on Meta::CPAN


=head1 VERSION

version 1.000003

=head1 SYNOPSIS

This is the default colour profile.

    \r           => black on red               '_'
    \n           => bold bright blue           '_'
    " "          => blue                       '_'
    \t           => bold bright blue on yellow '_'
    alphanumeric => white                      $char
    nonprintable => red                        '.'
    everything else => yellow                  $char

Invocation:

    my $cp = App::colourhexdump::DefaultColourProfile->new();
    my $colouredChar =
        $cp->get_string_pre( $char ) .
        $cp->get_dispaly_symbol_for( $char ) .



( run in 1.184 second using v1.01-cache-2.11-cpan-c333fce770f )