Debian Codegraph @

Debconf/Element/Editor/String.pm

raw
1 #!/usr/bin/perl
2
3 =head1 NAME
4
5 Debconf::Element::Editor::String - String question
6
7 =cut
8
9 package Debconf::Element::Editor::String;
10 use warnings;
11 use strict;
12 use base qw(Debconf::Element);
13
14 =head1 DESCRIPTION
15
16 This is a string input.
17
18 =cut
19
20 sub show {
21 my $this=shift;
22
23 $this->frontend->comment($this->question->extended_description."\n\n".
24 $this->question->description."\n");
25
26 my $default='';
27 $default=$this->question->value if defined $this->question->value;
28
29 $this->frontend->item($this->question->name, $default);
30 }
31
32 1