if (*s == '\0') { if (mode == RAWMODE) return; if (oldlen > 0) { move(0, STATW_STAT); attron(A_REVERSE); for (cnt = 0; cnt < oldlen; cnt++) addch(' '); oldlen = 0; attroff(A_REVERSE); refresh();
if (*s == '\0') { if (mode == RAWMODE) return; if (oldlen > 0) { move(0, STATW_STAT); attron(A_REVERSE); for (cnt = 0; cnt < oldlen; cnt++) addch(' '); oldlen = 0; attroff(A_REVERSE); refresh(); } return;
void statline(int mode, char *s){    static int oldlen = 0;    int l, cnt;    if (*s == '\0') {	if (mode == RAWMODE)	    return;	if (oldlen > 0) {	    move(0, STATW_STAT);	    attron(A_REVERSE);	    for (cnt = 0; cnt < oldlen; cnt++)		addch(' ');	    oldlen = 0;	    attroff(A_REVERSE);	    refresh();	}	return;    }    if (mode == RAWMODE) {	printf(">>%s\n", s);	return;    }    if (strlen(s) > 80 - STATW_STAT)	s[80 - STATW_STAT] = '\0';    move(0, STATW_STAT);    attron(A_REVERSE);    addstr(s);    if (oldlen > strlen(s)) {	l = oldlen - strlen(s);	for (cnt = 0; cnt < l; cnt++)	    addch(' ');    }    attroff(A_REVERSE);    oldlen = strlen(s);    refresh();}