Lines Matching refs:tcol
55 p->tcol = p->tcols; in term_setcol()
62 for (p->tcol = p->tcols; p->tcol < p->tcols + p->maxtcol; p->tcol++) in term_free()
63 free(p->tcol->buf); in term_free()
109 vbl = (p->flags & TERMP_NOPAD) || p->tcol->offset < p->viscol ? in term_flushln()
110 0 : p->tcol->offset - p->viscol; in term_flushln()
115 p->tcol->col = 0; in term_flushln()
120 vfield = p->tcol->rmargin > p->viscol + vbl ? in term_flushln()
121 p->tcol->rmargin - p->viscol - vbl : 0; in term_flushln()
161 p->tcol->taboff += vbr; in term_flushln()
163 p->tcol->taboff += vtarget; in term_flushln()
164 p->tcol->taboff += (*p->width)(p, ' '); in term_flushln()
173 for (ic = p->tcol->col; ic < p->tcol->lastcol; ic++) { in term_flushln()
174 switch (p->tcol->buf[ic]) { in term_flushln()
193 if (ic == p->tcol->lastcol) in term_flushln()
201 while (p->tcol->col < p->tcol->lastcol && in term_flushln()
202 p->tcol->buf[p->tcol->col] == ' ') in term_flushln()
203 p->tcol->col++; in term_flushln()
226 p->tcol->rmargin : p->tcol->offset; in term_flushln()
231 p->col = p->tcol->col = p->tcol->lastcol = 0; in term_flushln()
271 taboff = p->tcol->taboff; in term_fill()
272 for (ic = p->tcol->col; ic < p->tcol->lastcol; ic++) { in term_fill()
273 switch (p->tcol->buf[ic]) { in term_fill()
276 vis -= (*p->width)(p, p->tcol->buf[ic - 1]); in term_fill()
282 if (p->tcol->buf[ic] == ' ') in term_fill()
307 p->tcol->buf[ic] = '-'; in term_fill()
322 switch (p->tcol->buf[ic]) { in term_fill()
334 p->tcol->buf[ic] = ' '; in term_fill()
337 vis += (*p->width)(p, p->tcol->buf[ic]); in term_fill()
375 taboff = p->tcol->taboff; in term_field()
376 for (ic = p->tcol->col; ic < nbr; ic++) { in term_field()
383 switch (p->tcol->buf[ic]) { in term_field()
394 if (p->tcol->buf[ic] == '\t') { in term_field()
422 (*p->letter)(p, p->tcol->buf[ic]); in term_field()
423 if (p->tcol->buf[ic] == '\b') { in term_field()
424 dv = (*p->width)(p, p->tcol->buf[ic - 1]); in term_field()
428 dv = (*p->width)(p, p->tcol->buf[ic]); in term_field()
433 p->tcol->col = nbr; in term_field()
464 if (p->tcol->lastcol || p->viscol) in term_newln()
466 p->tcol->taboff = 0; in term_newln()
692 if (p->tcol->offset > (size_t)(-uc)) { in term_word()
694 p->tcol->offset += uc; in term_word()
696 p->ti -= p->tcol->offset; in term_word()
697 p->tcol->offset = 0; in term_word()
706 if (p->tcol->rmargin <= p->tcol->offset) in term_word()
708 lsz = p->tcol->rmargin - p->tcol->offset; in term_word()
770 if (p->tcol->lastcol > 2 && in term_word()
771 (p->tcol->buf[p->tcol->lastcol - 1] == ' ' || in term_word()
772 p->tcol->buf[p->tcol->lastcol - 1] == '\t')) in term_word()
773 p->tcol->lastcol -= 2; in term_word()
774 if (p->col > p->tcol->lastcol) in term_word()
775 p->col = p->tcol->lastcol; in term_word()
819 if (p->col + 1 >= p->tcol->maxcols) in bufferc()
820 adjbuf(p->tcol, p->col + 1); in bufferc()
821 if (p->tcol->lastcol <= p->col || (c != ' ' && c != ASCII_NBRSP)) in bufferc()
822 p->tcol->buf[p->col] = c; in bufferc()
823 if (p->tcol->lastcol < ++p->col) in bufferc()
824 p->tcol->lastcol = p->col; in bufferc()
830 if (p->tcol->lastcol && p->tcol->lastcol <= p->col && in term_tab_ref()
850 if (p->col + 7 >= p->tcol->maxcols) in encode1()
851 adjbuf(p->tcol, p->col + 7); in encode1()
857 if (p->tcol->buf[p->col - 1] == ' ' || in encode1()
858 p->tcol->buf[p->col - 1] == '\t') in encode1()
861 p->tcol->buf[p->col++] = '\b'; in encode1()
865 p->tcol->buf[p->col++] = '_'; in encode1()
866 p->tcol->buf[p->col++] = '\b'; in encode1()
870 p->tcol->buf[p->col++] = '-'; in encode1()
872 p->tcol->buf[p->col++] = c; in encode1()
873 p->tcol->buf[p->col++] = '\b'; in encode1()
875 if (p->tcol->lastcol <= p->col || (c != ' ' && c != ASCII_NBRSP)) in encode1()
876 p->tcol->buf[p->col] = c; in encode1()
877 if (p->tcol->lastcol < ++p->col) in encode1()
878 p->tcol->lastcol = p->col; in encode1()
896 if (p->col + 2 + (sz * 5) >= p->tcol->maxcols) in encode()
897 adjbuf(p->tcol, p->col + 2 + (sz * 5)); in encode()
904 if (p->tcol->lastcol <= p->col || in encode()
906 p->tcol->buf[p->col] = word[i]; in encode()
921 if (p->tcol->lastcol < p->col) in encode()
922 p->tcol->lastcol = p->col; in encode()