home *** CD-ROM | disk | FTP | other *** search
- /* LOCATE(row, col, cursor, start, stop) - position and define cursor
-
- Copyright (c) 1984 by JMI Software Consultants, Inc.
- */
- #include "acom.h"
-
- VOID LOCATE(row, col, cursor, start, stop)
- INT row, col, cursor, start, stop;
- {
- EXFUNC INT CSRLIN(), POS();
-
- if (row == -1)
- row = CSRLIN();
- else
- if (row < 1 || row > 25)
- xerror(1, "LOCATE");
- if (col == -1)
- col = POS();
- else
- if (col < 1 || col > 80)
- xerror(1, "LOCATE");
- set_cur(row - 1, col - 1);
- if (cursor != -1 || start != -1 || stop != -1)
- cur_control(cursor, start, stop);
- }