<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">#!/usr/bin/perl
# This file was preprocessed, do not edit!


package Debconf::Element::Dialog::Boolean;
use warnings;
use strict;
use base qw(Debconf::Element);


sub show {
	my $this=shift;

	my @params=('--yesno');
	push @params, $this-&gt;frontend-&gt;dashsep if $this-&gt;frontend-&gt;dashsep;
	push @params, $this-&gt;frontend-&gt;makeprompt($this-&gt;question, 1);
	if (defined $this-&gt;question-&gt;value &amp;&amp; $this-&gt;question-&gt;value eq 'false') {
		unshift @params, '--defaultno';
	}

	my ($ret, $value)=$this-&gt;frontend-&gt;showdialog($this-&gt;question, @params);
	if (defined $ret) {
		$this-&gt;value($ret eq 0 ? 'true' : 'false');
	}
	else {
		my $default='';
		$default=$this-&gt;question-&gt;value
			if defined $this-&gt;question-&gt;value;
		$this-&gt;value($default);
	}
}

1
</pre></body></html>