NAME

Image::TextMode::Reader::PCBoard - Reads PCBoard files

DESCRIPTION

Provides reading capabilities for the PCBoard format.

ACCESSORS

  • tabstop - every Nth character will be a tab stop location (default: 8)

  • x - current x (default: 0)

  • y - current y (default: 0)

  • attr - current attribute info (default: 7, gray on black)

  • state - state of the parser (default: $S_TXT)

  • image - the image we're parsing into

  • linewrap - max width before we wrap to the next line (default: 80)

  • codes - hashref of key-value pairs to substitute into the image

METHODS

set_attributes( $bg, $fg )

Sets the default attribute information (fg and bg).

clear_screen( )

Clears all data on the canvas.

new_line( )

Simulates a \n character.

tab( )

Simulates a \t character.

store( $char, $x, $y [, $attr] )

Stores $char at position $x, $y with either the supplied attribute or the current attribute setting.

AUTHOR

Brian Cassidy <bricas@cpan.org>

COPYRIGHT AND LICENSE

Copyright 2008-2011 by Brian Cassidy

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