Lines Matching refs:tp_col

53 	(d).tp_col = (s).tp_col;	\
175 (vb->vb_cursor.tp_row == row) && (vb->vb_cursor.tp_col == col))
184 sc = vb->vb_mark_start.tp_col;
186 ec = vb->vb_mark_end.tp_col;
209 if (vb->vb_dirtyrect.tr_begin.tp_col > area->tr_begin.tp_col)
210 vb->vb_dirtyrect.tr_begin.tp_col = area->tr_begin.tp_col;
213 if (vb->vb_dirtyrect.tr_end.tp_col < area->tr_end.tp_col)
214 vb->vb_dirtyrect.tr_end.tp_col = area->tr_end.tp_col;
233 area.tr_end.tp_col = p->tp_col + 1;
242 vb->vb_dirtyrect.tr_end.tp_row = vb->vb_dirtyrect.tr_end.tp_col = 0;
266 KASSERT(r->tr_begin.tp_col < vb->vb_scr_size.tp_col,
267 ("vtbuf_copy begin.tp_col %d must be less than screen height %d",
268 r->tr_begin.tp_col, vb->vb_scr_size.tp_col));
273 KASSERT(r->tr_end.tp_col <= vb->vb_scr_size.tp_col,
274 ("vtbuf_copy end.tp_col %d must be less than screen height %d",
275 r->tr_end.tp_col, vb->vb_scr_size.tp_col));
280 KASSERT(p2->tp_col < vb->vb_scr_size.tp_col,
281 ("vtbuf_copy tp_col %d must be less than screen height %d",
282 p2->tp_col, vb->vb_scr_size.tp_col));
286 cols = r->tr_end.tp_col - r->tr_begin.tp_col;
287 if (r->tr_begin.tp_row > p2->tp_row && r->tr_begin.tp_col == 0 &&
288 r->tr_end.tp_col == vb->vb_scr_size.tp_col && /* Full row. */
297 &VTBUF_FIELD(vb, p2->tp_row + pr, p2->tp_col),
298 &VTBUF_FIELD(vb, p1->tp_row + pr, p1->tp_col),
304 &VTBUF_FIELD(vb, p2->tp_row + pr, p2->tp_col),
305 &VTBUF_FIELD(vb, p1->tp_row + pr, p1->tp_col),
311 area.tr_end.tp_col = MIN(p2->tp_col + cols, vb->vb_scr_size.tp_col);
324 for (pc = r->tr_begin.tp_col; pc < r->tr_end.tp_col; pc++) {
336 KASSERT(r->tr_begin.tp_col < vb->vb_scr_size.tp_col,
337 ("vtbuf_fill_locked begin.tp_col %d must be < screen width %d",
338 r->tr_begin.tp_col, vb->vb_scr_size.tp_col));
343 KASSERT(r->tr_end.tp_col <= vb->vb_scr_size.tp_col,
344 ("vtbuf_fill_locked end.tp_col %d must be <= screen width %d",
345 r->tr_end.tp_col, vb->vb_scr_size.tp_col));
361 vb->vb_rows[r] = &vb->vb_buffer[r * vb->vb_scr_size.tp_col];
373 vb->vb_mark_start.tp_col = 0;
375 vb->vb_mark_end.tp_col = 0;
378 rect.tr_begin.tp_row = rect.tr_begin.tp_col = 0;
379 rect.tr_end.tp_col = vb->vb_scr_size.tp_col;
398 sz = vb->vb_history_size * p->tp_col * sizeof(term_char_t);
415 p.tp_col = vb->vb_scr_size.tp_col;
430 bufsize = history_size * p->tp_col * sizeof(term_char_t);
441 w = vb->vb_scr_size.tp_col;
487 MIN(p->tp_col, w) * sizeof(term_char_t));
494 for (c = MIN(p->tp_col, w); c < p->tp_col; c++) {
500 rect.tr_begin.tp_col = 0;
502 rect.tr_end.tp_col = p->tp_col;
535 MIN(p->tp_col, w) * sizeof(term_char_t));
542 for (c = MIN(p->tp_col, w); c < p->tp_col; c++) {
566 if (vb->vb_cursor.tp_col > p->tp_col - 1)
571 vb->vb_cursor.tp_col = p->tp_col - 1;
593 KASSERT(p->tp_col < vb->vb_scr_size.tp_col,
594 ("vtbuf_putchar tp_col %d must be less than screen height %d",
595 p->tp_col, vb->vb_scr_size.tp_col));
599 if (row[p->tp_col] != c) {
601 row[p->tp_col] = c;
630 if (vb->vb_mark_start.tp_col || vb->vb_mark_end.tp_col ||
636 area.tr_begin.tp_col = 0;
639 area.tr_end.tp_col = vb->vb_scr_size.tp_col;
654 vb->vb_mark_start.tp_col) >
656 vb->vb_mark_end.tp_col)) {
664 si = s.tp_row * vb->vb_scr_size.tp_col + s.tp_col;
665 ei = e.tp_row * vb->vb_scr_size.tp_col + e.tp_col;
681 vb->vb_mark_start.tp_col) >
683 vb->vb_mark_end.tp_col)) {
693 cs = (r == s.tp_row)?s.tp_col:0;
694 ce = (r == e.tp_row)?e.tp_col:vb->vb_scr_size.tp_col;
720 vb->vb_mark_end.tp_col = col;
725 vb->vb_mark_start.tp_col = col;
728 vb->vb_mark_end.tp_col = col;
738 vb->vb_mark_start.tp_col = i + 1;
742 for (i = col; i < vb->vb_scr_size.tp_col; i ++) {
744 vb->vb_mark_end.tp_col = i;
748 if (vb->vb_mark_start.tp_col > vb->vb_mark_end.tp_col)
749 vb->vb_mark_start.tp_col = vb->vb_mark_end.tp_col;
753 vb->vb_mark_start.tp_col = 0;
754 vb->vb_mark_end.tp_col = vb->vb_scr_size.tp_col;