soc/intel/xeon_sp/util: Enhance lock_pam0123
[coreboot2.git] / payloads / libpayload / curses / PDCurses / sdl1 / pdcgetsc.c
blob431923507246ce8a542f38357c8bf101f7df8bad
1 /* Public Domain Curses */
3 #include "pdcsdl.h"
5 RCSID("$Id: pdcgetsc.c,v 1.8 2008/07/14 04:24:52 wmcbrine Exp $")
7 /* get the cursor size/shape */
9 int PDC_get_cursor_mode(void)
11 PDC_LOG(("PDC_get_cursor_mode() - called\n"));
13 return 0;
16 /* return number of screen rows */
18 int PDC_get_rows(void)
20 PDC_LOG(("PDC_get_rows() - called\n"));
22 return pdc_sheight / pdc_fheight;
25 /* return width of screen/viewport */
27 int PDC_get_columns(void)
29 PDC_LOG(("PDC_get_columns() - called\n"));
31 return pdc_swidth / pdc_fwidth;