my $g = Games::Grid->new (border => 4, width => sub { $W/4}, height => sub { $H }, fill => '='); #### { my $W = $self->{terminal}->{_co}; my $H = $self->{terminal}->{_li}; $self->{terminal}->{WIDTH} = $config{width}->(); $self->{terminal}->{HEIGHT} = $config{height}->(); }