NAME

AI::ExpertSystem::Advanced::Viewer::Terminal - Viewer for terminal

DESCRIPTION

Extends from AI::ExpertSystem::Advanced::Viewer::Base and its main purpose is to interact with a (console) terminal.

Attribtes

readline

A Term::ReadLine instance.

Methods

debug($msg)

Basically just does a print but prepends the "DEBUG" string to the message.

print($msg)

Just does a print of the given message.

Will prepend the "ERROR:" word to the given message and then will call print().

ask($message, @options)

Will be used to ask the user for some information. It will receive a string, the question to ask and an array of all the possible options.

Please return only one option and this should be any of the ones listed in @options cause otherwise AI::ExpertSystem::Advanced will die.

explain($yaml_summary)

Explains as a human what happened.

AUTHOR

Pablo Fischer (pablo@pablo.com.mx).

COPYRIGHT

Copyright (C) 2010 by Pablo Fischer.

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