Lines Matching refs:tcol
55 p->tcol = p->tcols; in term_setcol()
61 for (p->tcol = p->tcols; p->tcol < p->tcols + p->maxtcol; p->tcol++) in term_free()
62 free(p->tcol->buf); in term_free()
108 vbl = (p->flags & TERMP_NOPAD) || p->tcol->offset < p->viscol ? in term_flushln()
109 0 : p->tcol->offset - p->viscol; in term_flushln()
114 p->tcol->col = 0; in term_flushln()
119 vfield = p->tcol->rmargin > p->viscol + vbl ? in term_flushln()
120 p->tcol->rmargin - p->viscol - vbl : 0; in term_flushln()
167 for (ic = p->tcol->col; ic < p->tcol->lastcol; ic++) { in term_flushln()
168 switch (p->tcol->buf[ic]) { in term_flushln()
185 if (ic == p->tcol->lastcol) in term_flushln()
193 while (p->tcol->col < p->tcol->lastcol && in term_flushln()
194 p->tcol->buf[p->tcol->col] == ' ') in term_flushln()
195 p->tcol->col++; in term_flushln()
219 p->tcol->rmargin : p->tcol->offset; in term_flushln()
224 p->col = p->tcol->col = p->tcol->lastcol = 0; in term_flushln()
263 for (ic = p->tcol->col; ic < p->tcol->lastcol; ic++) { in term_fill()
264 switch (p->tcol->buf[ic]) { in term_fill()
267 vis -= (*p->width)(p, p->tcol->buf[ic - 1]); in term_fill()
273 switch (p->tcol->buf[ic]) { in term_fill()
309 p->tcol->buf[ic] = '-'; in term_fill()
320 p->tcol->buf[ic] = ' '; in term_fill()
324 vis += (*p->width)(p, p->tcol->buf[ic]); in term_fill()
358 for (ic = p->tcol->col; ic < nbr; ic++) { in term_field()
365 switch (p->tcol->buf[ic]) { in term_field()
397 (*p->letter)(p, p->tcol->buf[ic]); in term_field()
398 if (p->tcol->buf[ic] == '\b') { in term_field()
399 dv = (*p->width)(p, p->tcol->buf[ic - 1]); in term_field()
403 dv = (*p->width)(p, p->tcol->buf[ic]); in term_field()
408 p->tcol->col = nbr; in term_field()
440 if (p->tcol->lastcol || p->viscol) in term_newln()
646 if (p->tcol->offset > (size_t)(-uc)) { in term_word()
648 p->tcol->offset += uc; in term_word()
650 p->ti -= p->tcol->offset; in term_word()
651 p->tcol->offset = 0; in term_word()
660 if (p->tcol->rmargin <= p->tcol->offset) in term_word()
662 lsz = p->tcol->rmargin - p->tcol->offset; in term_word()
724 if (p->tcol->lastcol > 2 && in term_word()
725 (p->tcol->buf[p->tcol->lastcol - 1] == ' ' || in term_word()
726 p->tcol->buf[p->tcol->lastcol - 1] == '\t')) in term_word()
727 p->tcol->lastcol -= 2; in term_word()
728 if (p->col > p->tcol->lastcol) in term_word()
729 p->col = p->tcol->lastcol; in term_word()
770 if (p->col + 1 >= p->tcol->maxcols) in bufferc()
771 adjbuf(p->tcol, p->col + 1); in bufferc()
772 if (p->tcol->lastcol <= p->col || (c != ' ' && c != ASCII_NBRSP)) in bufferc()
773 p->tcol->buf[p->col] = c; in bufferc()
774 if (p->tcol->lastcol < ++p->col) in bufferc()
775 p->tcol->lastcol = p->col; in bufferc()
793 if (p->col + 7 >= p->tcol->maxcols) in encode1()
794 adjbuf(p->tcol, p->col + 7); in encode1()
800 if (p->tcol->buf[p->col - 1] == ' ' || in encode1()
801 p->tcol->buf[p->col - 1] == '\t') in encode1()
804 p->tcol->buf[p->col++] = '\b'; in encode1()
808 p->tcol->buf[p->col++] = '_'; in encode1()
809 p->tcol->buf[p->col++] = '\b'; in encode1()
813 p->tcol->buf[p->col++] = '-'; in encode1()
815 p->tcol->buf[p->col++] = c; in encode1()
816 p->tcol->buf[p->col++] = '\b'; in encode1()
818 if (p->tcol->lastcol <= p->col || (c != ' ' && c != ASCII_NBRSP)) in encode1()
819 p->tcol->buf[p->col] = c; in encode1()
820 if (p->tcol->lastcol < ++p->col) in encode1()
821 p->tcol->lastcol = p->col; in encode1()
839 if (p->col + 2 + (sz * 5) >= p->tcol->maxcols) in encode()
840 adjbuf(p->tcol, p->col + 2 + (sz * 5)); in encode()
847 if (p->tcol->lastcol <= p->col || in encode()
849 p->tcol->buf[p->col] = word[i]; in encode()
864 if (p->tcol->lastcol < p->col) in encode()
865 p->tcol->lastcol = p->col; in encode()