summaryrefslogtreecommitdiffstats
path: root/perl-install/interactive
diff options
context:
space:
mode:
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;
}