12345678910111213141516171819202122232425262728293031 |
- #include <curses.h>
- #include "cursor.h"
-
-
-
-
- void _restore_curs_pos ( WINDOW *win, struct cursor_pos *pos ) {
- win->curs_y = pos->y;
- win->curs_x = pos->x;
- win->scr->movetoyx ( win->scr, win->curs_y, win->curs_x );
- }
-
-
- void _store_curs_pos ( WINDOW *win, struct cursor_pos *pos ) {
- pos->y = win->curs_y;
- pos->x = win->curs_x;
- }
|