The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Term::Output::List::Role - common methods to Term::Output::List implementations

SYNOPSIS

my $printer = Term::Output::List->new(
    hook_warnings => 1,
);
my @ongoing_tasks = ('file1: frobnicating', 'file2: bamboozling', 'file3: frobnicating');
$printer->output_list(@ongoing_tasks);

$printer->output_permanent("Frobnicated gizmos"); # appears above the list

MEMBERS

fh

Filehandle used for output. Default is STDOUT.

interactive

Whether the script is run interactively and should output intermittent updateable information

hook_warnings

Install a hook for sending warnings to ->output_permanent. This prevents ugly tearing/overwriting when your code outputs warnings.

->fresh_output

$o->fresh_output();

Helper subroutine to make all items from the last output list remain as is.

For compatibility between output to a terminal and output without a terminal, you should use ->output_permanent for things that should be permanent instead.