24 Nov 2019 06:47:49 UTC
- Distribution: PerlIO-via-EscStatus
- Module version: 12
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (0)
- Testers (285 / 0 / 0)
- KwaliteeBus factor: 1
- 80.10% Coverage
- License: gpl_3
- Perl: v5.8.5
- Activity24 month
- Download (58.74KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionKRYDE Kevin Rydeand 1 contributors
- Kevin Ryde
PerlIO::via::EscStatus::ShowNone - suppress all status lines
use PerlIO::via::EscStatus::ShowNone; binmode (STDOUT, ':via(EscStatus::ShowNone)') or die;
EscStatus::ShowNoneis a variant of the EscStatus layer which doesn't show any status lines coming through the stream at all, only the ordinary output. This can be used for a batch mode or non-interactive mode in a program.
Of course for batch mode it's also possible simply not to print statuses in the first place. You can decide whether it's easier to check a mode flag at the print, or push a layer to strip what's printed. A layer may be easier for suppressing prints from a library or independent parts of a program.
See examples/shownone.pl for a complete program using ShowNone.
Copyright 2008, 2009, 2010, 2011, 2012, 2017 Kevin Ryde
PerlIO-via-EscStatus is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.
PerlIO-via-EscStatus is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with PerlIO-via-EscStatus. If not, see http://www.gnu.org/licenses/.
Module Install Instructions
To install PerlIO::via::EscStatus, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install PerlIO::via::EscStatus
For more information on module installation, please visit the detailed CPAN module installation guide.