1Config::Model::TermUI(3U)ser Contributed Perl DocumentatiCoonnfig::Model::TermUI(3)
2
3
4

NAME

6       Config::Model::TermUI - Provides Config::Model UI a la Term::ReadLine
7

VERSION

9       version 1.205
10

SYNOPSIS

12        my $model = Config::Model -> new ;
13        my $inst = $model->instance (root_class_name => 'RootClass',
14                                        instance_name => 'my_instance');
15        my $root = $inst -> config_root ;
16
17        my $term_ui = Config::Model::TermUI->new( root => $root ,
18                                                  title => 'My Title',
19                                                  prompt => 'My Prompt',
20                                                );
21
22        # engage in user interaction
23        $term_ui -> run_loop ;
24

DESCRIPTION

26       This module provides a helper to construct pure ascii user interface on
27       top of Term::ReadLine. To get better interaction you must install
28       either Term::ReadLine::Gnu or Term::ReadLine::Perl.
29
30       Depending on your installation, either Term::ReadLine::Gnu or
31       Term::ReadLine::Perl. See Term::ReadLine to override default choice.
32

USER COMMAND SYNTAX

34       See "USER COMMAND SYNTAX" in Config::Model::SimpleUI.
35

CONSTRUCTOR

37   parameters
38       root
39           Root node of the configuration tree
40
41       title
42           UI title
43
44       prompt
45           UI prompt. The prompt will be completed with the location of the
46           current node.
47

Methods

49   run_loop()
50       Engage in user interaction until user enters '^D' (CTRL-D).
51

BUGS

53       ·   Auto-completion is not complete.
54
55       ·   Auto-completion provides wrong choice when you try to "cd" in a
56           hash where the index contains a white space. I.e. the correct
57           command is "cd foo:"a b"" instead of "cd foo: "a b"" as proposed by
58           auto completion.
59
60       ·   UI should take into account experience.
61

AUTHOR

63       Dominique Dumont, (ddumont at cpan dot org)
64

SEE ALSO

66       Config::Model, Config::Model::Instance, Config::Model::Node,
67
68
69
70perl v5.12.1                      2010-08-18          Config::Model::TermUI(3)
Impressum