Example

The following is an example of using the GetCursorPos method.

//-------------------------------------------------------------------
// ECLPS::GetCursorPos
//
// Display position of host cursor in connection 'A'
//-------------------------------------------------------------------
void Sample60() {
 
ECLPS PS('A');       // PS object for connection A
ULONG Row, Col, Pos;
 
PS.GetCursorPos(&Row, &Col);   // Get row/col position
// Could also write as:
Row = PS.GetCursorPosRow();    // Redundant
Col = PS.GetCursorPosCol();    // Redundant
 
Pos = PS.GetCursorPos();       // Get linear position
 
printf("Host cursor of connection A is at row %lu column %lu
 (linear position %lu)\n", Row, Col, Pos);
 
} // end sample
 
/