home *** CD-ROM | disk | FTP | other *** search
- /**
- *
- * Name EDSETCUR -- Set the cursor's size and position.
- *
- * Synopsis error = edsetcur(pdata, off, pcursor, row, col);
- *
- * int error Returned error code.
- * void *pdata Unused; see below.
- * int off New state of cursor (0 = on, 1 = off).
- * CUR_TYPE *pcursor Pointer to structure containing size
- * of cursor.
- * int row,col Row and column (relative to upper left
- * corner of screen) of new cursor
- * position.
- *
- * Description The cursor is moved, and its size is set to the values
- * in *pcursor. The parameter pdata is never used; its
- * inclusion in the calling sequence is to ensure calling
- * sequence compatibility with WNRETINF.
- *
- * Returns error ED_NO_ERROR
- *
- * Version 6.00 (C)Copyright Blaise Computing Inc. 1989
- *
- **/
- #include <bedit.h>
-
- int edsetcur(pdata, off, pcursor, row, col)
- void *pdata;
- int off;
- CUR_TYPE *pcursor;
- int row;
- int col;
- {
- /* Supress unused parameter compiler warnings. */
- ((char *) pdata)++;
-
- sccurset(row, col);
-
- scpgcur(off, pcursor->high, pcursor->low, CUR_ADJUST);
-
- return(ED_NO_ERROR);
- }