GetPositionOfOutputCursor

Returns the output cursor’s current row and column position for the current screen

Local Servers:nonblocking
Remote Servers:N/A
Classification:3.x, 4.x, 5.x, 6.x
Service:Screen Handling

Syntax

  #include <nwconio.h>  
   
  int GetPositionOfOutputCursor  (  
     WORD   *row,   
     WORD   *column); 
  

Parameters

row

(OUT) Points to the row on which the cursor is positioned (first row is 0).

column

(OUT) Points to the column on which the cursor is positioned (first column is 0).

Return Values

The following table lists return values and descriptions.

Value

Hex

Name

Description

0

(0x00)

ESUCCESS

Successful.

23

(0x17)

ENO_SCRNS

No screens were open.

Remarks

This function returns the output cursor’s position on the current screen; it also returns the input cursor’s position if cursor coupling is enabled for the current screen.

See Also

gotoxy