static char rn[] = "gator_cursesgwin_drawchar"; /*Routine name */
struct gator_cursesgwin *cwp; /*Ptr to curses private area */
int curses_x, curses_y; /*Mapped x,y positions */
+ int code=0;
cwp = (struct gator_cursesgwin *)(gwp->w_data);
curses_x = GATOR_MAP_X_TO_COL(cwp, params->x);
curses_x, (params->highlight ? ", using standout mode" : ""));
wmove(cwp->wp, curses_y, curses_x);
if (params->highlight)
- wstandout(cwp->wp);
+ code=wstandout(cwp->wp);
+ if (code)
+ return (code);
waddch(cwp->wp, params->c);
if (params->highlight)
- wstandend(cwp->wp);
+ code=wstandend(cwp->wp);
+ if (code)
+ return (code);
return (0);
static char rn[] = "gator_cursesgwin_drawstring"; /*Routine name */
struct gator_cursesgwin *cwp; /*Ptr to curses private area */
int curses_x, curses_y; /*Mapped x,y positions */
+ int code=0;
cwp = (struct gator_cursesgwin *)(gwp->w_data);
curses_x = GATOR_MAP_X_TO_COL(cwp, params->x);
curses_x, (params->highlight ? ", using standout mode" : ""));
wmove(cwp->wp, curses_y, curses_x);
if (params->highlight)
- wstandout(cwp->wp);
+ code=wstandout(cwp->wp);
+ if (code)
+ return (code);
waddstr(cwp->wp, params->s);
if (params->highlight)
- wstandend(cwp->wp);
+ code=wstandend(cwp->wp);
+ if (code)
+ return (code);
- return (0);
+ return (code);
} /*gator_cursesgwin_drawstring */