Skip to content

Throwing Invalid Color Error from Defaults #5

@shanemcw

Description

@shanemcw

Error thrown (latest Perl and modules, Ubuntu):

Invalid rgb1 color 'ffffffffffffffe7ffffffffffffffe7ffffffffffffffe7', must be in 'ffffff' form at /usr/local/share/perl/5.30.0/Color/RGB/Util.pm line 249.

from this code

                my $tw = 2;
                my @ta = ();
                my $tb = Text::ANSITable->new;
                
                $tb->columns(["X", "Y"]);
                foreach $i ( sort keys %Flag ) {
                    push @ta, $Flag{$i}, $i;
                    if ((scalar @ta) == $tw) {
                        $tb->add_row(\@ta);
                        @ta = ();
                        }
                    }
                print $tb->draw;

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions