home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 9 / 09.iso / l / l200 / 6.ddi / LIB / LOCATE.C < prev    next >
Encoding:
C/C++ Source or Header  |  1986-08-21  |  580 b   |  26 lines

  1. /*    LOCATE(row, col, cursor, start, stop) - position and define cursor
  2.  
  3.     Copyright (c) 1984 by JMI Software Consultants, Inc.
  4. */
  5. #include "acom.h"
  6.  
  7. VOID LOCATE(row, col, cursor, start, stop)
  8.     INT row, col, cursor, start, stop;
  9.     {
  10.     EXFUNC INT CSRLIN(), POS();
  11.  
  12.     if (row == -1)
  13.         row = CSRLIN();
  14.     else
  15.         if (row < 1 || row > 25)
  16.             xerror(1, "LOCATE");
  17.     if (col == -1)
  18.         col = POS();
  19.     else 
  20.         if (col < 1 || col > 80)
  21.             xerror(1, "LOCATE");
  22.     set_cur(row - 1, col - 1);
  23.     if (cursor != -1 || start != -1 || stop != -1)
  24.         cur_control(cursor, start, stop);
  25.     }
  26.