K2LL33D SHELL

 Apache/2.4.7 (Ubuntu)
 Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64
 uid=33(www-data) gid=33(www-data) groups=33(www-data)
 safemode : OFF
 MySQL: ON | Perl: ON | cURL: OFF | WGet: ON
  >  / usr / share / perl5 / Debconf / Element / Dialog /
server ip : 104.21.89.46

your ip : 172.70.80.99

H O M E


Filename/usr/share/perl5/Debconf/Element/Dialog/Select.pm
Size1.32 kb
Permissionrw-r--r--
Ownerroot : root
Create time27-Apr-2025 09:50
Last modified23-Feb-2014 22:30
Last accessed06-Jul-2025 21:23
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
#!/usr/bin/perl -w
# This file was preprocessed, do not edit!


package Debconf::Element::Dialog::Select;
use strict;
use base qw(Debconf::Element::Select);
use Debconf::Encoding qw(width);


sub show {
my $this=shift;

my ($text, $lines, $columns)=
$this->frontend->makeprompt($this->question, -2);

my $screen_lines=$this->frontend->screenheight - $this->frontend->spacer;
my $default=$this->translate_default;
my @params=();
my @choices=$this->question->choices_split;

my $menu_height=$#choices + 1;
if ($lines + $#choices + 2 >= $screen_lines) {
$menu_height = $screen_lines - $lines - 4;
}

$lines=$lines + $menu_height + $this->frontend->spacer;
my $c=1;
my $selectspacer = $this->frontend->selectspacer;
foreach (@choices) {
push @params, $_, '';

if ($columns < width($_) + $selectspacer) {
$columns = width($_) + $selectspacer;
}
}

if ($this->frontend->dashsep) {
unshift @params, $this->frontend->dashsep;
}

@params=('--default-item', $default, '--menu',
$text, $lines, $columns, $menu_height, @params);

my $value=$this->frontend->showdialog($this->question, @params);
if (defined $value) {
$this->value($this->translate_to_C($value)) if defined $value;
}
else {
my $default='';
$default=$this->question->value
if defined $this->question->value;
$this->value($default);
}
}

1