Kevin Ryde


PerlIO::via::EscStatus::ShowNone - suppress all status lines


 use PerlIO::via::EscStatus::ShowNone;
 binmode (STDOUT, ':via(EscStatus::ShowNone)') or die;


EscStatus::ShowNone is 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/ in the PerlIO-via-EscStatus sources for a complete program using ShowNone.


PerlIO::via::EscStatus, PerlIO::via



Copyright 2008, 2009, 2010, 2011, 2012 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