home *** CD-ROM | disk | FTP | other *** search
/ Turbo Toolbox / Turbo_Toolbox.iso / dtx9202 / dbase / cursorh.c < prev    next >
Encoding:
C/C++ Source or Header  |  1991-12-10  |  739 b   |  28 lines

  1. /* ------------------------------------------------------ */
  2. /*                       CURSORH.C                        */
  3. /*        (c) 1991 Helmut Guttenberg & DMV-Verlag         */
  4. /* ------------------------------------------------------ */
  5. #include <stdlib.h>
  6. #include <string.h>
  7. #include <dos.h>
  8. #include "serv.h"
  9.  
  10. void cursorhandler(unsigned ds, unsigned bx)
  11. {
  12.   char *cmdstr = (char *) MK_FP(ds, bx);
  13.   {
  14.   /* Cursor-Form */
  15.   int  u,l;
  16.   char *pos;
  17.  
  18.   pos = cmdstr;
  19.   u = atoi(pos) + 1;
  20.   pos = strchr(pos, ',') + 1;
  21.   l = atoi(pos) + 1;
  22.   setcurshape((u << 8) | (l & 0xFF));
  23.  }
  24. }
  25. /* ------------------------------------------------------ */
  26. /*               Ende von CURSORH.C                       */
  27.  
  28.