home *** CD-ROM | disk | FTP | other *** search
- /*
- ** wsynccur.c
- **
- ** Pictor, Version 1.51, Copyright (c) 1992-94 SoftCircuits
- ** Redistributed by permission.
- */
-
- #include <stdio.h>
- #include "pictor.h"
-
-
- /*
- ** Sets the write position for current window.
- */
- void wsynccurs(void)
- {
- if(_PL_winhead != NULL) {
- /* hide cursor if not within window pane */
- if((unsigned)_CURR_WPANE.row < (unsigned)getwrows() ||
- (unsigned)_CURR_WPANE.column < (unsigned)getwcols()) {
-
- setcurs(_CURR_WPANE.top + _CURR_WPANE.row + 1,
- _CURR_WPANE.left + _CURR_WPANE.column + 1);
- }
- else
- setcurs(_PL_rows + 1,1);
- }
-
- } /* wsynccurs */
-