Add memtest support.
[syslinux-debian/hramrach.git] / gpxe / src / hci / mucurses / cursor.h
blob16b7d27c27b27ac051a7b4562225bc77112e3e8a
1 #ifndef CURSOR_H
2 #define CURSOR_H
4 /** @file
6 * MuCurses cursor implementation specific header file
8 */
10 FILE_LICENCE ( GPL2_OR_LATER );
12 struct cursor_pos {
13 unsigned int y, x;
16 /**
17 * Restore cursor position from encoded backup variable
19 * @v *win window on which to operate
20 * @v *pos pointer to struct in which original cursor position is stored
22 static inline void _restore_curs_pos ( WINDOW *win, struct cursor_pos *pos ) {
23 wmove ( win, pos->y, pos->x );
26 /**
27 * Store cursor position for later restoration
29 * @v *win window on which to operate
30 * @v *pos pointer to struct in which to store cursor position
32 static inline void _store_curs_pos ( WINDOW *win, struct cursor_pos *pos ) {
33 pos->y = win->curs_y;
34 pos->x = win->curs_x;
37 #endif /* CURSOR_H */