
Image::ANSI::Parser - Reads in ANSI files

my $parser = Image::ANSI::Parser->new;
my $ansi = $parser->parse( file => 'file.ans' );

Creates a new parser object and reads in a file, handle or string.
Clears the internal ANSI object.
Reads in a file, handle or string
my $parser = Image::ANSI::Parser->new;
# filename
$ansi = $parser->parse( file => 'file.ans' );
# file handle
$ansi = $parser->parse( handle => $handle );
# string
$ansi = $parser->parse( string => $string );
Gets / sets the internal ANSI object.
stores the current 'x' location.
stores the current 'y' location.
sets the x() and y() positions.
sets the attributes of the pixel (fg, bg, blinking)
moves y() up by $number (default 1).
moves y() down by $number (default 1).
moves x() right by $number (default 1).
moves x() left by $number (default 1).
saves the current x() and y() positions.
restored the saved x() and y() positions.
clears the pixels on the current line.
clears all pixels.
simulates a newline char.
simulates a tab char (8 spaces).
stores $char at position $x, $y using attributes $attr (or the current attr setting if none are supplied).
same as the pixel() method
same as the pixel() method
get/sets the pixel at $x, $y.


Copyright 2004-2009 by Brian Cassidy
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.