summaryrefslogtreecommitdiffstats
path: root/perl-install/interactive
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-10-22 17:25:42 +0000
committerOlivier Blin <oblin@mandriva.com>2009-10-22 17:25:42 +0000
commit30159888f459d6307c37e0017021ba703f7a90d3 (patch)
tree34a95b2a8e65bb15faeae1c0ee34de2b22dd12fc /perl-install/interactive
parent429364130579b0282cfef9fae0bf86b620c34333 (diff)
downloaddrakx-30159888f459d6307c37e0017021ba703f7a90d3.tar
drakx-30159888f459d6307c37e0017021ba703f7a90d3.tar.gz
drakx-30159888f459d6307c37e0017021ba703f7a90d3.tar.bz2
drakx-30159888f459d6307c37e0017021ba703f7a90d3.tar.xz
drakx-30159888f459d6307c37e0017021ba703f7a90d3.zip
curses backend: do not crash when resuming interface
Diffstat (limited to 'perl-install/interactive')
-rw-r--r--perl-install/interactive/curses.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/interactive/curses.pm b/perl-install/interactive/curses.pm
index 90fca4c14..ffeeafd32 100644
--- a/perl-install/interactive/curses.pm
+++ b/perl-install/interactive/curses.pm
@@ -37,8 +37,8 @@ sub new {
sub enter_console { &suspend }
sub leave_console { &end }
-sub suspend { Curses::UI->leave_curses }
-sub resume { Curses::UI->reset_curses }
+sub suspend { $cui->leave_curses }
+sub resume { $cui->reset_curses }
sub end { &suspend; print $SAVEERR $_ foreach cat_($stderr_file); unlink $stderr_file }
sub exit { end(); CORE::exit($_[1] || 0) }
END { end() }