Magnus Woldrich > Term-ExtendedColor-TTY > Term::ExtendedColor::TTY::Colorschemes

Download:
Term-ExtendedColor-TTY-0.028.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.020   Source  

NAME ^

Term::ExtendedColor::TTY::Colorschemes - Colorschemes for the TTY

SYNOPSIS ^

    use Term::ExtendedColor::TTY qw(set_tty_color);
    use Term::ExtendedColor::TTY::Colorschemes;

DESCRIPTION ^

Term::ExtendedColor::TTY::Colorschemes exports functions for retrieving and using colorschemes in the TTY. This is intended to be used with Term::ExtendedColor::TTY.

EXPORTS ^

get_colorscheme()

Parameters: $colorscheme

Returns: \%colorscheme

  my $colorscheme  = get_colorscheme('xterm');

Returns a hash reference where its keys will be the color index and the value the hexadecimal color value.

get_colorschemes()

Paramters: $string

Returns: @colorschemes

In list context, return a list of all available colorschemes (strings). In scalar context, return the number of available colorschemes.

SEE ALSO ^

Term::ExtendedColor::TTY, Term::ExtendedColor::Xresources, Term::ExtendedColor

AUTHOR ^

  Magnus Woldrich
  CPAN ID: WOLDRICH
  magnus@trapd00r.se
  http://japh.se

CONTRIBUTORS ^

None required yet.

COPYRIGHT ^

Copyright 2010, 2011 the Term::ExtendedColor::TTY::Colorschemes "AUTHOR" and "CONTRIBUTORS" as listed above.

LICENSE ^

This library is free software; you may redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: