404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.147.71.116: ~ $
#!/usr/bin/perl -w
# This file was preprocessed, do not edit!


package Debconf::FrontEnd::ScreenSize;
use strict;
use Debconf::Gettext;
use base qw(Debconf::FrontEnd);


sub init {
	my $this=shift;

	$this->SUPER::init(@_);

	$this->resize; # Get current screen size.
	$SIG{WINCH}=sub {
		if (defined $this) {
			$this->resize;
		}
	};
}


sub resize {
	my $this=shift;

	if (exists $ENV{LINES}) {
		$this->screenheight($ENV{'LINES'});
		$this->screenheight_guessed(0);
	}
	else {
		my ($rows)=`stty -a 2>/dev/null` =~ m/rows (\d+)/s;
		if ($rows) {
			$this->screenheight($rows);
			$this->screenheight_guessed(0);
		}
		else {
			$this->screenheight(25);
			$this->screenheight_guessed(1);
		}
	}

	if (exists $ENV{COLUMNS}) {
		$this->screenwidth($ENV{'COLUMNS'});
	}
	else {
		my ($cols)=`stty -a 2>/dev/null` =~ m/columns (\d+)/s;
		$this->screenwidth($cols || 80);
	}
}


1

Filemanager

Name Type Size Permission Actions
Kde Folder 0755
Dialog.pm File 7.22 KB 0644
Editor.pm File 2.11 KB 0644
Gnome.pm File 7.34 KB 0644
Kde.pm File 4.31 KB 0644
Noninteractive.pm File 734 B 0644
Passthrough.pm File 6.29 KB 0644
Readline.pm File 3.53 KB 0644
ScreenSize.pm File 881 B 0644
Teletype.pm File 1.54 KB 0644
Text.pm File 155 B 0644
Web.pm File 2.6 KB 0644