Config::Model::CursesUI3pm
Curses interface to edit config data
Usage
use Config::Model ;use Config::Model::CursesUI ;my $model = Config::Model -> new ;my $inst = $model->instance (root_class_name => 'XXX',instance_name => 'yyy');# create dialogmy $dialog = Config::Model::CursesUI-> new () ;# start never returns$dialog->start($model) ;
Overview
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:
- load
-
Subroutine ref containing the code to load the configuration data from the configuration files. This may overrides loading mechanism specified in the model with Config::Model::AutoRead. This sub is called without any arguments.
- store
-
Subroutine ref containing the code to store the configuration data in the configuration files. This may overrides writing mechanism specified in the model with Config::Model::AutoRead. This sub is called without any arguments.
Releases
8 releases since Debian 6.0 (Squeeze); the text changed 5 times.