1Config::Model::CursesUIU(s3e)r Contributed Perl DocumentaCtoinofnig::Model::CursesUI(3)
2
3
4

NAME

6       Config::Model::CursesUI - Curses interface to edit config data
7

SYNOPSIS

9        use Config::Model ;
10        use Config::Model::CursesUI ;
11
12        my $model = Config::Model -> new ;
13
14        my $inst = $model->instance (
15           root_class_name => 'XXX',
16           instance_name   => 'yyy'
17        );
18
19        # create dialog
20        my $dialog = Config::Model::CursesUI-> new () ;
21
22        # start never returns
23        $dialog->start($model) ;
24

DESCRIPTION

26       This class provides a Curses::UI interface to configuration data
27       managed by Config::Model.
28
29       IMPORTANT: Once the CursesUI object is created, STDOUT and STDERR are
30       managed by the Curses interface, so all print and warn will not work as
31       expected.
32

CONSTRUCTOR

34       The constructor accepts the following parameters:
35
36       load
37           Subroutine ref containing the code to load the configuration data
38           from the configuration files. This may overrides loading mechanism
39           specified in the model with Config::Model::AutoRead. This sub is
40           called without any arguments.
41
42       store
43           Subroutine ref containing the code to store the configuration data
44           in the configuration files.  This may overrides writing mechanism
45           specified in the model with Config::Model::AutoRead. This sub is
46           called without any arguments.
47

AUTHOR

49       Dominique Dumont, (ddumont at cpan dot org)
50

LICENSE

52       Copyright (c) 2007-2009,2011,2017 Dominique Dumont.
53
54       This file is part of Config-Model.
55
56       Config-Model is free software; you can redistribute it and/or modify it
57       under the terms of the GNU Lesser General Public License as published
58       by the Free Software Foundation; either version 2.1 of the License, or
59       (at your option) any later version.
60
61       Config-Model is distributed in the hope that it will be useful, but
62       WITHOUT ANY WARRANTY; without even the implied warranty of
63       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
64       Lesser General Public License for more details.
65
66       You should have received a copy of the GNU Lesser General Public
67       License along with Config-Model; if not, write to the Free Software
68       Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
69       USA
70

SEE ALSO

72       Config::Model, Config::Model::ObjTreeScanner, Curses::UI, Curses
73
74
75
76perl v5.30.0                      2019-07-26        Config::Model::CursesUI(3)
Impressum