summaryrefslogtreecommitdiffstats
path: root/perl-install/interactive
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2011-12-22 22:09:04 +0000
committerPascal Terjan <pterjan@mageia.org>2011-12-22 22:09:04 +0000
commit96372954857a21ecf264d061ce02f90171a5ad0d (patch)
treef3a7cefb690598d0747f297cb8d521f0149b8587 /perl-install/interactive
parent59636a1db53aaf18f35fcfc929e93bf01964dda5 (diff)
downloaddrakx-backup-do-not-use-96372954857a21ecf264d061ce02f90171a5ad0d.tar
drakx-backup-do-not-use-96372954857a21ecf264d061ce02f90171a5ad0d.tar.gz
drakx-backup-do-not-use-96372954857a21ecf264d061ce02f90171a5ad0d.tar.bz2
drakx-backup-do-not-use-96372954857a21ecf264d061ce02f90171a5ad0d.tar.xz
drakx-backup-do-not-use-96372954857a21ecf264d061ce02f90171a5ad0d.zip
interactive::curses: default to 80x25 (fixes serial)
Diffstat (limited to 'perl-install/interactive')
-rw-r--r--perl-install/interactive/curses.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/perl-install/interactive/curses.pm b/perl-install/interactive/curses.pm
index cdcb6fe7f..2015c38de 100644
--- a/perl-install/interactive/curses.pm
+++ b/perl-install/interactive/curses.pm
@@ -32,6 +32,13 @@ sub new {
open STDERR, ">", common::secured_file($stderr_file);
$cui ||= Curses::UI->new('-color_support' => 1);
+
+ # Set some default terminal size, for serial install
+ unless ($cui->{-width}) {
+ $cui->{-width} = $cui->{-w} = $cui->{-bw} = 80;
+ $cui->{-height} = $cui->{-h} = $cui->{-bh} = 25;
+ }
+
bless { cui => $cui }, $class;
}