blob: 431923507246ce8a542f38357c8bf101f7df8bad [file] [log] [blame]
Patrick Georgi3b77b722011-07-07 15:41:53 +02001/* Public Domain Curses */
2
3#include "pdcsdl.h"
4
5RCSID("$Id: pdcgetsc.c,v 1.8 2008/07/14 04:24:52 wmcbrine Exp $")
6
7/* get the cursor size/shape */
8
9int 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
18int 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
27int PDC_get_columns(void)
28{
29 PDC_LOG(("PDC_get_columns() - called\n"));
30
31 return pdc_swidth / pdc_fwidth;
32}