| 1 |
#!/usr/bin/perl |
| 2 |
|
| 3 |
=head1 NAME |
| 4 |
|
| 5 |
Debconf::Element::Teletype::Note - A note to the user |
| 6 |
|
| 7 |
=cut |
| 8 |
|
| 9 |
package Debconf::Element::Teletype::Note; |
| 10 |
use warnings; |
| 11 |
use strict; |
| 12 |
use base qw(Debconf::Element); |
| 13 |
|
| 14 |
=head1 DESCRIPTION |
| 15 |
|
| 16 |
This is a note to the user, presented using a teletype. |
| 17 |
|
| 18 |
=cut |
| 19 |
|
| 20 |
=item show |
| 21 |
|
| 22 |
Notes are not shown in terse mode. |
| 23 |
|
| 24 |
=cut |
| 25 |
|
| 26 |
sub visible { |
| 27 |
my $this=shift; |
| 28 |
|
| 29 |
return (Debconf::Config->terse eq 'false'); |
| 30 |
} |
| 31 |
|
| 32 |
sub show { |
| 33 |
my $this=shift; |
| 34 |
|
| 35 |
$this->frontend->display($this->question->description."\n\n". |
| 36 |
$this->question->extended_description."\n"); |
| 37 |
|
| 38 |
$this->value(''); |
| 39 |
} |
| 40 |
|
| 41 |
1 |