X-Git-Url: http://www.dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2Fconsole.pl;h=0642e4b9b09240d26269c0478ca7b4ea13b425ed;hb=f9fbccb42b30e28358cf59ee06e17a2d610561f6;hp=2be859894ad459b1ffdbf7ae0fc707a442fa7e94;hpb=c87553a14286b31db30d28decb1c0d5c8327e443;p=spider.git diff --git a/perl/console.pl b/perl/console.pl index 2be85989..0642e4b9 100755 --- a/perl/console.pl +++ b/perl/console.pl @@ -79,7 +79,7 @@ sub do_initscr init_pair(12, COLOR_MAGENTA, COLOR_BLUE); init_pair(13, COLOR_YELLOW, COLOR_GREEN); init_pair(14, COLOR_RED, COLOR_GREEN); - assume_default_colors($foreground, $background); + eval { assume_default_colors($foreground, $background) }; } $top = $scr->subwin($lines-4, $cols, 0, 0);