Lines Matching refs:fldidx
3845 tty_status_update(fldidx, ptr, chg, percent, color, colormasks) in tty_status_update() argument
3846 int fldidx, chg UNUSED, percent, color; in tty_status_update()
3857 if ((fldidx < BL_RESET) || (fldidx >= MAXBLSTATS))
3860 if ((fldidx >= 0 && fldidx < MAXBLSTATS) && !status_activefields[fldidx])
3863 switch (fldidx) {
3876 tty_status[NOW][fldidx].idx = fldidx;
3879 tty_status[NOW][fldidx].valid = TRUE;
3880 tty_status[NOW][fldidx].dirty = TRUE;
3881 tty_status[NOW][fldidx].sanitycheck = TRUE;
3892 fmt = status_fieldfmt[fldidx];
3898 if (*fmt == ' ' && (fldidx == fieldorder[0][0]
3899 || fldidx == fieldorder[1][0]
3900 || fldidx == fieldorder[2][0]))
3902 Sprintf(status_vals[fldidx], fmt, text);
3903 tty_status[NOW][fldidx].idx = fldidx;
3904 tty_status[NOW][fldidx].color = (color & 0x00FF);
3905 tty_status[NOW][fldidx].attr = term_attr_fixup(attrmask);
3906 tty_status[NOW][fldidx].lth = strlen(status_vals[fldidx]);
3907 tty_status[NOW][fldidx].valid = TRUE;
3908 tty_status[NOW][fldidx].dirty = TRUE;
3909 tty_status[NOW][fldidx].sanitycheck = TRUE;
3915 if (fldidx >= 0 && fldidx < MAXBLSTATS
3916 && tty_status[NOW][fldidx].lth == 1
3917 && status_vals[fldidx][0] == ' ') {
3918 status_vals[fldidx][0] = '\0';
3919 tty_status[NOW][fldidx].lth = 0;
3923 switch (fldidx) {
3939 if (tty_status[NOW][fldidx].lth > 0) {
3940 p = status_vals[fldidx];
3943 tty_status[NOW][fldidx].lth--;
3951 tty_status[NOW][fldidx].lth = 30 + 2; /* '[' and ']' */
3955 if ((p = index(status_vals[fldidx], '\\')) != 0 && p[1] == 'G')
3956 tty_status[NOW][fldidx].lth -= (10 - 1);