217 |
return (x << 8) | y; |
return (x << 8) | y; |
218 |
} |
} |
219 |
|
|
220 |
|
static grub_uint16_t |
221 |
|
grub_ncurses_getwh (void) |
222 |
|
{ |
223 |
|
int x; |
224 |
|
int y; |
225 |
|
|
226 |
|
getmaxyx (stdscr, y, x); |
227 |
|
|
228 |
|
return (x << 8) | y; |
229 |
|
} |
230 |
|
|
231 |
static void |
static void |
232 |
grub_ncurses_gotoxy (grub_uint8_t x, grub_uint8_t y) |
grub_ncurses_gotoxy (grub_uint8_t x, grub_uint8_t y) |
233 |
{ |
{ |
286 |
.checkkey = grub_ncurses_checkkey, |
.checkkey = grub_ncurses_checkkey, |
287 |
.getkey = grub_ncurses_getkey, |
.getkey = grub_ncurses_getkey, |
288 |
.getxy = grub_ncurses_getxy, |
.getxy = grub_ncurses_getxy, |
289 |
|
.getwh = grub_ncurses_getwh, |
290 |
.gotoxy = grub_ncurses_gotoxy, |
.gotoxy = grub_ncurses_gotoxy, |
291 |
.cls = grub_ncurses_cls, |
.cls = grub_ncurses_cls, |
292 |
.setcolorstate = grub_ncurses_setcolorstate, |
.setcolorstate = grub_ncurses_setcolorstate, |