Term::VTerm::Color - represent an onscreen color for Term::VTerm
Term::VTerm::Color
Term::VTerm
$color = Term::VTerm::Color->new( red => $r, green => $g, blue => $b )
Returns a new Term::VTerm::Color instance.
$bool = $color->is_indexed
True if the colour is a palette index.
$bool = $color->is_rgb
True if the colour contains RGB values directly.
$idx = $color->index
The palette index for indexed colours.
$r = $color->red $g = $color->green $b = $color->blue
The components of the colour as an integer between 0 and 255 for RGB colours.
$hex = $color->rgb_hex
A 6-character string containing the three colour components, hex encoded.
$bool = $color->is_default_fg $bool = $color->is_default_bg
True if the colour is the default colour for terminal foreground or background.
Paul Evans <leonerd@leonerd.org.uk>
To install Term::VTerm, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Term::VTerm
CPAN shell
perl -MCPAN -e shell install Term::VTerm
For more information on module installation, please visit the detailed CPAN module installation guide.