PerlIO::via::EscStatusDumb terminal status display layer | |
Download |
PerlIO::via::EscStatus Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Publisher Name:
- Kevin Ryde
- Publisher web site:
- http://search.cpan.org/~kryde/
PerlIO::via::EscStatus Tags
PerlIO::via::EscStatus Description
Dumb terminal status display layer An EscStatus layer prints and reprints a status line using carriage returns and backspaces for a dumb terminal. The PerlIO::via::EscStatus module is meant as a progress or status display in a command line program. Working ... record 20 of 80 (25%) ^--cursor left hereStatus lines are communicated to EscStatus "in band" in the output stream with an escape sequence. Currently this is an ANSI "APC" application control, followed by the status line. make_status and print_status below produce this. "\e_EscStatus\e\\Status string\n"The layer clears and redraws the status when ordinary output text is printed, so it appears as normal. The status is also erased when the layer is popped (but unfortunately not when the stream is closed, see "BUGS" below).SYNOPSIS use PerlIO::via::EscStatus qw(print_status); binmode (STDOUT, ':via(EscStatus)') or die; print_status ("Done 10% ..."); print_status ("Done 20% ..."); print "This is ordinary text output.\n"; print_status ("Done 90% ..."); print_status (""); # erase status Requirements: · Perl
PerlIO::via::EscStatus Related Software