Android 18 has asked for the wisdom of the Perl Monks concerning the following question:

The Scroll() method for Win32::Console isn't having any effect when I call it. I _was_ scrolling my page manually before via calling ReadAttr() and ReadChar(), then WriteAttr() and WriteChar() at the new location. But I saw that Win32::Console supports ScrollConsoleScreenBuffer() and thought it might end up being a more efficient alternative. Here is the snippet where I actually call the Scroll method:

$self->{Output}->Scroll( 0, 3, 79, 47, #left, top, right, bottom 0, 2, #to 0, 3 ' ', $main::BG_BLACK | $main::FG_GRAY);


I figured that this should take a section (a rather large section at that) and just move it up one row. I've been fiddling with calling Mode() on my Output but to no avail. I've also been roaming around groups.google.com and have come up empty. Any help would be appreciated.

Once bread becomes toast, it can never be bread again.

Replies are listed 'Best First'.
Re: Win32::Console::Scroll()
by Nitrox (Chaplain) on Jul 25, 2002 at 20:32 UTC
    There is a bug in WIN32::Console which forces you to pass in a clipping range even though the documentation says it's optional. Just pass in a large enough range so that it doesn't effect your display.

    -Nitrox