Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 696 -
------------------------------------------------------------------------------
1.10 Set scroll area. <Main>
------------------------------------------------------------------------------
[Name]
crt_setscrlarea
[Syntax]
#include <crt.h>
int crt_setscrlarea( unsigned int start, unsigned int height ) ;
[Arguments]
start Start line of the scroll area (1 - max line).
height Height of the scroll area (1 - max line).
"max line" is 25 (14 inch CRT) or 16 (9 inch CRT). On VGA display
device, 30 (14 inch CRT) or 19 (9 inch CRT). (in case of line
extended)
[Return]
Returns zero if successful. If any error (for example, the scroll area
is out of the screen, etc.), returns "1".
[Description]
Set the scroll area for automatic scrolling by line-feeding.
Only specified scroll area is scrolled by line-feeding by this
function. This function doesn't clear the screen, and doesn't change
the current cursor position.
The whole screen is scroll area on the start-up time.
The scroll area which is specified by this function is effective to
both automatic scrolling by line-feeding and scroll-up/scroll-down by
escape-sequence ("ESC [nL", "ESC [nM").
[Example]
The following program sets the scroll area in 2 through 24th line.
(The top line and the bottom line are not scrolled.)
#include <crt.h>
void example( void )
{
crt_setscrlarea( 2, 24 ) ;
}