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


package Debconf::Element::Teletype::Progress;
use strict;
use base qw(Debconf::Element);


sub start {
	my $this=shift;

	$this-&gt;frontend-&gt;title($this-&gt;question-&gt;description);
	$this-&gt;frontend-&gt;display('');
	$this-&gt;last(0);
}

sub set {
	my $this=shift;
	my $value=shift;

	$this-&gt;progress_cur($value);

	use integer;
	my $new = ($this-&gt;progress_cur() - $this-&gt;progress_min()) * 100 / ($this-&gt;progress_max() - $this-&gt;progress_min());
	$this-&gt;last(0) if $new &lt; $this-&gt;last;
	return if $new / 10 == $this-&gt;last / 10;

	$this-&gt;last($new);
	$this-&gt;frontend-&gt;display("..$new%");

	return 1;
}

sub info {
	return 1;
}

sub stop {
	my $this=shift;

	$this-&gt;frontend-&gt;display("\n");
	$this-&gt;frontend-&gt;title($this-&gt;frontend-&gt;requested_title);
}

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