libpayload: Add PDCurses and ncurses' libform/libmenu
[coreboot.git] / payloads / libpayload / curses / PDCurses-3.4 / sdl1 / pdcgetsc.c
1 /* Public Domain Curses */
2
3 #include "pdcsdl.h"
4
5 RCSID("$Id: pdcgetsc.c,v 1.8 2008/07/14 04:24:52 wmcbrine Exp $")
6
7 /* get the cursor size/shape */
8
9 int PDC_get_cursor_mode(void)
10 {
11     PDC_LOG(("PDC_get_cursor_mode() - called\n"));
12
13     return 0;
14 }
15
16 /* return number of screen rows */
17
18 int PDC_get_rows(void)
19 {
20     PDC_LOG(("PDC_get_rows() - called\n"));
21
22     return pdc_sheight / pdc_fheight;
23 }
24
25 /* return width of screen/viewport */
26
27 int PDC_get_columns(void)
28 {
29     PDC_LOG(("PDC_get_columns() - called\n"));
30
31     return pdc_swidth / pdc_fwidth;
32 }