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

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

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.028   Source  

NAME ^

Term::ExtendedColor::TTY - Set colors in the TTY

SYNOPSIS ^

    use Term::ExtendedColor::TTY;

    my %colorscheme = (
      0   => '030303',
      1   => '1c1c1c',
      2   => 'ff4747',
      3   => 'ff6767',
      4   => '2b4626',
      5   => 'b03b31',
      6   => 'ff8f00',
      7   => 'bdf1ed',
      8   => '1165e9',
      9   => '5496ff',
      10  => 'aef7af',
      11  => 'b50077',
      12  => 'cb1c13',
      13  => '6be603',
      14  => 'ffffff',
    );

    my $result = set_tty_color( \%colorscheme );

    for my $index(sort(keys(%{$result}))) {
      print "Setting color index $index... $result->{$index}\n";
    }

DESCRIPTION ^

Term::ExtendedColor::TTY provides functions for changing and querying the Linux TTY (or Virtual Console, if you wish) for various resources, such as colors.

EXPORTS ^

None by default.

FUNCTIONS ^

set_tty_color()

Parameters: \%colormap

Returns: \%results

  my $ref = set_tty_color( \%colorscheme );

Returns a hash reference where its keys are the color indexes ( 0 .. 14) and the values are escape sequences crafted together to be printed straight to the TTY.

SEE ALSO ^

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

AUTHOR ^

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

CONTRIBUTORS ^

None required yet.

COPYRIGHT ^

Copyright 2010, 2011 the Term::ExtendedColor::TTYs "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: