Top
NetCOBOL V11.0 CBL Subroutines User's Guide
FUJITSU Software

11.2 CBL_SET_CSR_POS

This routine moves the cursor to the specified position. The cursor position is specified by line and column numbers. The top-left corner of the screen is assumed to be the origin (where line and column numbers are 0).

Specification

Parameter data definition
01 text-cursor-position.
   02 line-position     PIC 9(4) BINARY.
   02 column-position   PIC 9(4) BINARY.
01 status-code          PIC S9(4) COMP-5.
Calling format
CALL "CBL_SET_CSR_POS"
    USING text-cursor-position
    RETURNING status-code.

Interface

line-position

Specifies a new line position of the text cursor to be moved.

column-position

Specifies a new column position of the text cursor to be moved.

Return code

The return code is set in the status-code specified in the RETURNING clause.

status-code
  • 0: Successful

  • Other than 0: Failure

Note

Note the following point when using CBL_SET_CSR_POS:

To delete the text cursor from the screen, specify 255 in the line and column parameters.