X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2Fconsole.pl;h=8af9f3b3aed640fb6500efa34d1c471a1f192b38;hb=0aaec2fed8977d5e1cd02a4f1432bdde135a1044;hp=df524beb140241de71b4e19265fc88d25281fb33;hpb=5b16fd51941f17c26f8acaa35183cb8d407d16bc;p=spider.git diff --git a/perl/console.pl b/perl/console.pl index df524beb..8af9f3b3 100755 --- a/perl/console.pl +++ b/perl/console.pl @@ -85,11 +85,13 @@ sub do_initscr $top = $scr->subwin($lines-4, $cols, 0, 0); $top->intrflush(0); $top->scrollok(1); + $top->idlok(1); $top->meta(1); # $scr->addstr($lines-4, 0, '-' x $cols); $bot = $scr->subwin(3, $cols, $lines-3, 0); $bot->intrflush(0); $bot->scrollok(1); + $top->idlok(1); $bot->keypad(1); $bot->move(1,0); $bot->meta(1); @@ -106,7 +108,8 @@ sub do_resize initscr(); raw(); noecho(); - $lines = LINES; + nonl(); + $lines = LINES; $cols = COLS; $has_colors = has_colors(); do_initscr(); @@ -168,6 +171,7 @@ sub show_screen $top->addstr("\n") if $spos > 0; setattr($line); $top->addstr($line); +# $top->addstr("\n"); $top->attrset(COLOR_PAIR(0)) if $has_colors; $spos = @shistory;