Adding debian version 3.70~pre8+dfsg-1.
[syslinux-debian/hramrach.git] / gpxe / src / hci / mucurses / cursor.h
blobaf86519ca882ab91b55d39357eeff01d42d63c90
1 #ifndef CURSOR_H
2 #define CURSOR_H
4 /** @file
6 * MuCurses cursor implementation specific header file
8 */
10 struct cursor_pos {
11 unsigned int y, x;
14 /**
15 * Restore cursor position from encoded backup variable
17 * @v *win window on which to operate
18 * @v *pos pointer to struct in which original cursor position is stored
20 static inline void _restore_curs_pos ( WINDOW *win, struct cursor_pos *pos ) {
21 wmove ( win, pos->y, pos->x );
24 /**
25 * Store cursor position for later restoration
27 * @v *win window on which to operate
28 * @v *pos pointer to struct in which to store cursor position
30 static inline void _store_curs_pos ( WINDOW *win, struct cursor_pos *pos ) {
31 pos->y = win->curs_y;
32 pos->x = win->curs_x;
35 #endif /* CURSOR_H */