NAME

Config::Model::CursesUI - Curses interface for configuration tree

SYNOPSIS

use Config::Model ;
use Config::Model::CursesUI ;

my $model = Config::Model -> new ;

my $inst = $model->instance (root_class_name => 'XXX',
                             instance_name   => 'yyy');

# create dialog
my $dialog = Config::Model::CursesUI-> new
 (
  permission => 'intermediate', # or 'advanced'
 ) ;

# start never returns
$dialog->start($model) ;

DESCRIPTION

This class provides a Curses::UI interface to configuration data managed by Config::Model.

IMPORTANT: Once the CursesUI object is created, STDOUT and STDERR are managed by the Curses interface, so all print and warn will not work as expected.

CONSTRUCTOR

The constructor accepts the following parameters:

permission

Specifies the permission level of the user (default: intermediate). The permission can be master advanced intermediate.

AUTHOR

Dominique Dumont, (ddumont at cpan dot org)

SEE ALSO

Config::Model, Config::Model::ObjTreeScanner, Curses::UI, Curses