en:ibm:prcp:vio:getcurpos

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
en:ibm:prcp:vio:getcurpos [2016/02/04 10:25] – created valeriusen:ibm:prcp:vio:getcurpos [2016/09/15 05:03] (current) valerius
Line 1: Line 1:
 ==== VioGetCurPos ==== ==== VioGetCurPos ====
  
-**Bindings**: C, MASM +**Bindings**: [[getcurpos#bindings|C]][[getcurpos#MASM bindings|MASM]]
  
 This call returns the coordinates of the cursor.  This call returns the coordinates of the cursor. 
Line 20: Line 20:
  
 |0 |NO_ERROR | |0 |NO_ERROR |
-|355 ||ERROR_VIO_MODE | +|355 |ERROR_VIO_MODE | 
-|436 ||ERROR_VIO_INVALID_HANDLE |+|436 |ERROR_VIO_INVALID_HANDLE |
 |465 |ERROR_VIO_DETACHED | |465 |ERROR_VIO_DETACHED |
 +
 +=== C bindings ===
 +
 +<code c>
 +#define INCL_VIO
 +
 +USHORT  rc = VioGetCurPos(Row, Column, VioHandle);
 +
 +PUSHORT          Row;           /* Row return data */
 +PUSHORT          Column;        /* Column return data */
 +HVIO             VioHandle;     /* Vio handle */
 +
 +USHORT           rc;            /* return code */
 +</code>
 +
 +=== MASM bindings ===
 +
 +<code asm>
 +EXTRN  VioGetCurPos:FAR
 +INCL_VIO            EQU 1
 +
 +PUSH@  WORD    Row           ;Row return data
 +PUSH@  WORD    Column        ;Column return data
 +PUSH   WORD    VioHandle     ;Vio handle
 +CALL   VioGetCurPos
 +
 +Returns WORD
 +</code>