int PDC_get_cursor_pos(int *row, int *col) /***********************************************************************/ { #ifdef PDCDEBUG if (trace_on) PDC_debug("PDC_get_cursor_pos() - called\n"); #endif #ifdef EMXVIDEO v_getxy (col, row); #else VioGetCurPos((PUSHORT)row,(PUSHORT)col,0); #endif return( OK ); }
char vm_wherex(void) { if (_osmode == DOS_MODE) { int row, col; vi_init(); v_getxy(&col, &row); return (char)(col + 1); } else { USHORT row, col; VioGetCurPos(&row, &col, 0); return (char)(col + 1); } }
int PDC_get_cur_col(void) /***********************************************************************/ { #ifdef EMXVIDEO int curCol=0, curRow=0; #else USHORT curCol=0, curRow=0; #endif #ifdef PDCDEBUG if (trace_on) PDC_debug("PDC_get_cur_col() - called\n"); #endif /* find the current cursor position */ #ifdef EMXVIDEO v_getxy (&curCol, &curRow); #else VioGetCurPos ((PUSHORT) &curRow, (PUSHORT) &curCol, 0); #endif return (curCol); }