sub _clear { return unless $_[0]; open my $OUT, ">/dev/tty" or croak "Cannot write to terminal: $!"; print {$OUT} "\n" x 60; $clearfirst = 0; }