Term::VT102::Incremental - get VT updates in increments
version 0.05
my $vti = Term::VT102::Incremental->new( rows => 50, cols => 100, ); $vti->process(...); my $updates = $vti->get_increment(); # at time X $vti->process(...); $vti->process(...); my $updates_since_time_X = $vti->get_increment(); # at time Y
Term::VT102::Incremental is a thin wrapper around Term::VT102 with a few internal differences. This module takes the exact same arguments in the constructor as Term::VT102, but has one extra method: get_increment.
get_increment
Intermal Term::VT102 object. You can make any configurations that any other normal Term::VT102 object would let you make.
See Term::VT102's process.
process
See Term::VT102's rows.
rows
See Term::VT102's cols.
cols
Returns the name of the VT class that the internal VT object will use when instantiated. Currently defaults too Term::VT102 but can be overridden by extending this class.
After one or more updates, you can call get_increment to see the incremental series of updates you've made. It returns an arrayref of 3-element lists: row, cell, and cell property differences.
Cell properties consist of:
fg
bg
bo
fa
st
ul
bl
rv
See the attr_pack method in the Term::VT102 documentation for details on this.
attr_pack
Jason May <jason.a.may@gmail.com>
This software is copyright (c) 2011 by Jason May.
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 Term::VT102::Incremental, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Term::VT102::Incremental
CPAN shell
perl -MCPAN -e shell install Term::VT102::Incremental
For more information on module installation, please visit the detailed CPAN module installation guide.