X-Git-Url: https://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=src%2Fgtx%2Fcurseswindows.c;h=e1796d5c65feea98e8c330ccef056c85d85710a6;hp=bbb50b6345b295a8936b88e7ca9ce689b249d2bb;hb=03ab065e0ccf291d45a93b7d63c022bcad3aac34;hpb=62016280224d6532f0807e9637b3c38cf025c7fe diff --git a/src/gtx/curseswindows.c b/src/gtx/curseswindows.c index bbb50b6..e1796d5 100644 --- a/src/gtx/curseswindows.c +++ b/src/gtx/curseswindows.c @@ -1,7 +1,7 @@ /* * Copyright 2000, International Business Machines Corporation and others. * All Rights Reserved. - * + * * This software has been released under the terms of the IBM Public * License. For details, see the LICENSE file in the top-level source * directory or online at http://www.openafs.org/dl/license10.html @@ -578,6 +578,7 @@ gator_cursesgwin_drawchar(struct gwin *gwp, struct gwin_charparams *params) 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); @@ -589,10 +590,14 @@ gator_cursesgwin_drawchar(struct gwin *gwp, struct gwin_charparams *params) 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); @@ -627,6 +632,7 @@ gator_cursesgwin_drawstring(struct gwin *gwp, struct gwin_strparams *params) 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); @@ -638,12 +644,16 @@ gator_cursesgwin_drawstring(struct gwin *gwp, struct gwin_strparams *params) 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 */