PDCurses/x11/pdcgetsc.c
William McBrine f294596357 Redundant code; on resize, move the cursor just enough to keep it
onscreen, instead of resetting it.
2019-09-15 08:22:01 -04:00

29 lines
419 B
C

/* PDCurses */
#include "pdcx11.h"
/* return width of screen/viewport */
int PDC_get_columns(void)
{
PDC_LOG(("PDC_get_columns() - called\n"));
return pdc_wwidth / pdc_fwidth;
}
/* get the cursor size/shape */
int PDC_get_cursor_mode(void)
{
return 0;
}
/* return number of screen rows */
int PDC_get_rows(void)
{
PDC_LOG(("PDC_get_rows() - called\n"));
return pdc_wheight / pdc_fheight;
}