Config::Model::TermUI - Provides Config::Model UI à la Term::ReadLine


NAME

Config::Model::TermUI - Provides Config::Model UI à la Term::ReadLine


SYNOPSIS

 my $model = Config::Model -> new ;
 my $inst = $model->instance (root_class_name => 'RootClass', 
                                 instance_name => 'my_instance');
 my $root = $inst -> config_root ;
 my $term_ui = Config::Model::TermUI->new( root => $root ,
                                           title => 'My Title',
                                           prompt => 'My Prompt',
                                         );
 # engage in user interaction
 $term_ui -> run_loop ;


DESCRIPTION

This module provides a helper to construct pure ascii user interface on top of the Term::ReadLine manpage. To get better interaction you must install either the Term::ReadLine::Gnu manpage or the Term::ReadLine::Perl manpage.

Depending on your installation, either the Term::ReadLine::Gnu manpage or the Term::ReadLine::Perl manpage. See the Term::ReadLine manpage to override default choice.


USER COMMAND SYNTAX

See USER COMMAND SYNTAX in the Config::Model::SimpleUI manpage.


CONSTRUCTOR

parameters

root

Root node of the configuration tree

title

UI title

prompt

UI prompt. The prompt will be completed with the location of the current node.


Methods

run_loop()

Engage in user interaction until user enters '^D' (CTRL-D).


BUGS


AUTHOR

Dominique Dumont, (ddumont at cpan dot org)


SEE ALSO

the Config::Model manpage, the Config::Model::Instance manpage, the Config::Model::Node manpage,

 Config::Model::TermUI - Provides Config::Model UI à la Term::ReadLine