Scrolls the screen display starting and finishing at the specified lines up one line.
Restriction: This function is supported for native COBOL only.
Syntax:
#include "cobscreen.h"
void cobscroll (int top, int bot);
Parameters:
top
|
The first line of the area of screen to be scrolled up one line. This must be two lines less than the physical screen size to prevent the top line from scrolling off the screen. |
bot
|
The last line of the area of screen to be scrolled up one line |
Equivalent COBOL Syntax:
None.
Example:
The top line of the screen is 0. The bottom line of the screen can be found using coblines(). Hence, to scroll the entire screen use:
cobscroll(0, coblines() - 1);