whererowcol

Returns the current position of cursor on the application screen.

Library:LibC
Classification:Novell
Service:Screen Support

Syntax

  #include <screen.h> 
   
  int whererowcol (
     int   *row,
     int   *col);
  

Parameters

row

(OUT) Specifies the vertical position by specifying the row number.

col

(OUT) Specifies the horizontal position by specifying the column number.

Return Values

If successful, returns 0. Otherwise, returns -1 and sets errno to one of the following:

Decimal

Constant

Description

23

ENO_SCRNS

Screen I/O is being attempted when no screen is available.

105

ENOCONTEXT

No thread context is present.

See Also