App::Prove::Plugin::TermTable - Set the size of the console for Term::Table
version 0.02
From command-line:
prove -PTermTable
From .proverc:
-PTermTable
Some of the Test2::Tools provide some pretty tables for comparing deltas from failed tests. It tries to detect the size of the terminal so that long lines can be wrapped and the tables remain readable. Unfortunately when you run the tests under prove, stdout is redirected to a non-terminal and the size of the terminal cannot be detected. This plugin will detect the size of the terminal using /dev/tty instead of stdout and set the appropriate environment variable so that tables can be printed to use the entire terminal diameter.
prove
stdout
/dev/tty
I understand why 80 columns is the default for when you do not know the size of a terminal, but really who here in 2018 is actually using an 80 column display? sigh.
Graham Ollis <plicease@cpan.org>
This software is copyright (c) 2018 by Graham Ollis.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install App::Prove::Plugin::TermTable, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Prove::Plugin::TermTable
CPAN shell
perl -MCPAN -e shell install App::Prove::Plugin::TermTable
For more information on module installation, please visit the detailed CPAN module installation guide.