Name
Scroll
Synopsis
$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
, and
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);
Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.