Lines Matching refs:tp_col

51 	(d).tp_col = (s).tp_col;	\
148 vb->vb_mark_start.tp_col = vb->vb_mark_end.tp_col; in vthistory_addlines()
215 (vb->vb_cursor.tp_row == row) && (vb->vb_cursor.tp_col == col)) in vtbuf_iscursor()
220 if (vb->vb_mark_start.tp_col == vb->vb_mark_end.tp_col && in vtbuf_iscursor()
224 sc = vb->vb_mark_start.tp_col; in vtbuf_iscursor()
226 ec = vb->vb_mark_end.tp_col; in vtbuf_iscursor()
272 if (vb->vb_dirtyrect.tr_begin.tp_col > area->tr_begin.tp_col) in vtbuf_dirty()
273 vb->vb_dirtyrect.tr_begin.tp_col = area->tr_begin.tp_col; in vtbuf_dirty()
276 if (vb->vb_dirtyrect.tr_end.tp_col < area->tr_end.tp_col) in vtbuf_dirty()
277 vb->vb_dirtyrect.tr_end.tp_col = area->tr_end.tp_col; in vtbuf_dirty()
287 area.tr_end.tp_col = p->tp_col + 1; in vtbuf_dirty_cell()
296 vb->vb_dirtyrect.tr_end.tp_row = vb->vb_dirtyrect.tr_end.tp_col = 0; in vtbuf_make_undirty()
318 KASSERT(r->tr_begin.tp_col < vb->vb_scr_size.tp_col, in vtbuf_copy()
320 r->tr_begin.tp_col, vb->vb_scr_size.tp_col)); in vtbuf_copy()
325 KASSERT(r->tr_end.tp_col <= vb->vb_scr_size.tp_col, in vtbuf_copy()
327 r->tr_end.tp_col, vb->vb_scr_size.tp_col)); in vtbuf_copy()
332 KASSERT(p2->tp_col < vb->vb_scr_size.tp_col, in vtbuf_copy()
334 p2->tp_col, vb->vb_scr_size.tp_col)); in vtbuf_copy()
338 cols = r->tr_end.tp_col - r->tr_begin.tp_col; in vtbuf_copy()
339 if (r->tr_begin.tp_row > p2->tp_row && r->tr_begin.tp_col == 0 && in vtbuf_copy()
340 r->tr_end.tp_col == vb->vb_scr_size.tp_col && /* Full row. */ in vtbuf_copy()
349 &VTBUF_FIELD(vb, p2->tp_row + pr, p2->tp_col), in vtbuf_copy()
350 &VTBUF_FIELD(vb, p1->tp_row + pr, p1->tp_col), in vtbuf_copy()
356 &VTBUF_FIELD(vb, p2->tp_row + pr, p2->tp_col), in vtbuf_copy()
357 &VTBUF_FIELD(vb, p1->tp_row + pr, p1->tp_col), in vtbuf_copy()
363 area.tr_end.tp_col = MIN(p2->tp_col + cols, vb->vb_scr_size.tp_col); in vtbuf_copy()
376 for (pc = r->tr_begin.tp_col; pc < r->tr_end.tp_col; pc++) { in vtbuf_do_fill()
389 KASSERT(r->tr_begin.tp_col < vb->vb_scr_size.tp_col, in vtbuf_fill()
391 r->tr_begin.tp_col, vb->vb_scr_size.tp_col)); in vtbuf_fill()
396 KASSERT(r->tr_end.tp_col <= vb->vb_scr_size.tp_col, in vtbuf_fill()
398 r->tr_end.tp_col, vb->vb_scr_size.tp_col)); in vtbuf_fill()
412 vb->vb_rows[r] = &vb->vb_buffer[r * vb->vb_scr_size.tp_col]; in vtbuf_init_rows()
425 rect.tr_begin.tp_row = rect.tr_begin.tp_col = 0; in vtbuf_do_clearhistory()
426 rect.tr_end.tp_col = vb->vb_scr_size.tp_col; in vtbuf_do_clearhistory()
438 vb->vb_mark_start.tp_col = 0; in vtbuf_reset_scrollback()
440 vb->vb_mark_end.tp_col = 0; in vtbuf_reset_scrollback()
466 sz = vb->vb_history_size * p->tp_col * sizeof(term_char_t); in vtbuf_init()
493 p.tp_col = vb->vb_scr_size.tp_col; in vtbuf_sethistory_size()
513 bufsize = history_size * p->tp_col * sizeof(term_char_t); in vtbuf_grow()
524 w = vb->vb_scr_size.tp_col; in vtbuf_grow()
567 MIN(p->tp_col, w) * sizeof(term_char_t)); in vtbuf_grow()
574 for (c = MIN(p->tp_col, w); c < p->tp_col; c++) { in vtbuf_grow()
582 for (c = MIN(p->tp_col, w); c < p->tp_col; c++) { in vtbuf_grow()
624 MIN(p->tp_col, w) * sizeof(term_char_t)); in vtbuf_grow()
631 for (c = MIN(p->tp_col, w); c < p->tp_col; c++) { in vtbuf_grow()
645 if (vb->vb_cursor.tp_col > p->tp_col - 1) in vtbuf_grow()
650 vb->vb_cursor.tp_col = p->tp_col - 1; in vtbuf_grow()
671 KASSERT(p->tp_col < vb->vb_scr_size.tp_col, in vtbuf_putchar()
673 p->tp_col, vb->vb_scr_size.tp_col)); in vtbuf_putchar()
677 if (row[p->tp_col] != c) { in vtbuf_putchar()
678 row[p->tp_col] = c; in vtbuf_putchar()
703 if ((vb->vb_mark_start.tp_col != vb->vb_mark_end.tp_col) || in vtbuf_flush_mark()
708 area.tr_begin.tp_col = 0; in vtbuf_flush_mark()
711 area.tr_end.tp_col = vb->vb_scr_size.tp_col; in vtbuf_flush_mark()
728 vb->vb_mark_start.tp_col) > in vtbuf_get_marked_len()
730 vb->vb_mark_end.tp_col)) { in vtbuf_get_marked_len()
738 si = s.tp_row * vb->vb_scr_size.tp_col + s.tp_col; in vtbuf_get_marked_len()
739 ei = e.tp_row * vb->vb_scr_size.tp_col + e.tp_col; in vtbuf_get_marked_len()
778 vb->vb_mark_start.tp_col) > in vtbuf_extract_marked()
780 vb->vb_mark_end.tp_col)) { in vtbuf_extract_marked()
790 cs = (r == s.tp_row)?s.tp_col:0; in vtbuf_extract_marked()
791 ce = (r == e.tp_row)?e.tp_col:vb->vb_scr_size.tp_col; in vtbuf_extract_marked()
830 vb->vb_mark_end.tp_col = col; in vtbuf_set_mark()
835 vb->vb_mark_start.tp_col = col; in vtbuf_set_mark()
838 vb->vb_mark_end.tp_col = col; in vtbuf_set_mark()
848 vb->vb_mark_start.tp_col = i + 1; in vtbuf_set_mark()
854 vb->vb_mark_start.tp_col = 0; in vtbuf_set_mark()
855 for (i = col; i < vb->vb_scr_size.tp_col; i++) { in vtbuf_set_mark()
857 vb->vb_mark_end.tp_col = i; in vtbuf_set_mark()
862 if (i == vb->vb_scr_size.tp_col) in vtbuf_set_mark()
863 vb->vb_mark_end.tp_col = i; in vtbuf_set_mark()
865 if (vb->vb_mark_start.tp_col > vb->vb_mark_end.tp_col) in vtbuf_set_mark()
866 vb->vb_mark_start.tp_col = vb->vb_mark_end.tp_col; in vtbuf_set_mark()
870 vb->vb_mark_start.tp_col = 0; in vtbuf_set_mark()
871 vb->vb_mark_end.tp_col = vb->vb_scr_size.tp_col; in vtbuf_set_mark()