NAME

Term::VT102::ZeroBased - Term::VT102 but with zero-based indices

VERSION

Version 0.82 released 02 Sep 07

SYNOPSIS

use Term::VT102::ZeroBased;

my $vt = Term::VT102->new (cols => 80, rows => 24);
$vt->process("\e[H");                    # move to top left
printf "(%d, %d)!\n", $vt->x, $vt->y;    # (0, 0)!

DESCRIPTION

Term::VT102, a module for terminal emulation, uses 1-based indices for screen positions. I find this annoying. So this is a simple wrapper around Term::VT102 that converts 1-based indices to 0-based indices.

Why, in particular, would you want this? Escape sequences use one-based indices, so it makes perfect sense for Term::VT102 to use one-based indices. But Curses uses zero-based indices. And so do most other modules.

See Term::VT102 for the documentation on using these modules.

SEE ALSO

Term::VT102, Class::Method::Modifiers

AUTHOR

Wrapper by Shawn M Moore, <sartak at gmail dot com>

Term::VT102 by Andrew Wood <andrew dot wood at ivarch dot com>

BUGS

No known bugs.

Please report any bugs in this module through RT: email bug-term-vt102-zerobased at rt.cpan.org, or browse to http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Term-VT102-ZeroBased.

Consult the Term::VT102 documentation for reporting bugs in that module.

COPYRIGHT AND LICENSE

Copyright 2007 Shawn M Moore.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.