1234567891011121314151617181920212223242526272829303132333435 |
- #ifndef CURSOR_H
- #define CURSOR_H
-
-
-
- struct cursor_pos {
- unsigned int y, x;
- };
-
-
- static inline void _restore_curs_pos ( WINDOW *win, struct cursor_pos *pos ) {
- wmove ( win, pos->y, pos->x );
- }
-
-
- static inline void _store_curs_pos ( WINDOW *win, struct cursor_pos *pos ) {
- pos->y = win->curs_y;
- pos->x = win->curs_x;
- }
-
- #endif
|