Previous Topic Next topic Print topic


cobclear

Clears the screen and positions the cursor at line 0, column 0.
Restriction: This function is supported for native COBOL only.

Syntax:

#include "cobscreen.h"

void cobclear (void);

Parameters:

None.

Comments:

This routine causes the screen to be cleared. The virtual cursor is reset to the home position, at line 0, column 0.

Equivalent COBOL Syntax:

call "CBL_CLEAR_SCREEN" using ...

or

display spaces upon crt

Example:

To clear the screen and display a message in the top left-hand corner, use:

cobclear();
cobaddstrc("Cursor home occurs on cobclear\n");
Previous Topic Next topic Print topic