Reference: Scroll
Author: Ellen Siever, Stephen Spainhour & Nathan Patwardhan
Date: 1999-07-02T01:59:17Z

#

| Chapter 19 Win32 Modules and Extensions |

## Scroll

    $cons->Scroll(left, top, right, bottom, col, row, char, attr, [cleft, ctop, cright, cbottom])

Moves a block of data in a console buffer; the block is identified by the left, top, right, and bottom positions.

row and col identify the new location of the block. The cells left empty as a result of the move are filled with the character char and attribute attr.

Optionally, you can specify a clipping region with cleft, ctop, cright, cbottom, so that the contents of the console outside this rectangle are unchanged. Returns `undef` on error or a nonzero value on success.

>     # scrolls the screen 10 lines down, filling with black spaces
>     $CONSOLE->Scroll(0, 0, 80, 25, 0, 10, " ", $FG_BLACK | $BG_BLACK);

Reference: ReadRect |  | Reference: Select