1
0
mirror of synced 2026-04-26 20:16:53 +00:00
Files
andrastantos.cray-sim/simulator/pdcurses/sdl1/pdcgetsc.c
2020-09-09 15:11:45 -07:00

33 lines
550 B
C

/* Public Domain Curses */
#include "pdcsdl.h"
RCSID("$Id: pdcgetsc.c,v 1.8 2008/07/14 04:24:52 wmcbrine Exp $")
/* get the cursor size/shape */
int PDC_get_cursor_mode(void)
{
PDC_LOG(("PDC_get_cursor_mode() - called\n"));
return 0;
}
/* return number of screen rows */
int PDC_get_rows(void)
{
PDC_LOG(("PDC_get_rows() - called\n"));
return pdc_sheight / pdc_fheight;
}
/* return width of screen/viewport */
int PDC_get_columns(void)
{
PDC_LOG(("PDC_get_columns() - called\n"));
return pdc_swidth / pdc_fwidth;
}