Author image Pablo Fischer
and 1 contributors

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 prints the given $msg but prepends the "DEBUG" string to it.

print($msg)

Simply prints the given $msg.

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.

explain($yaml_summary)

Explains 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.