Term::VT102::Incremental - get VT updates in increments
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:
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:
attr_pack method in the Term::VT102 documentation for details on this.
Jason May <email@example.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.