Lines Matching refs:t_cursor

94 	teken_assert(t->t_cursor.tp_row <= t->t_winsize.tp_row);
161 (t->t_cursor.tp_row - t->t_originreg.ts_begin) + 1,
162 t->t_cursor.tp_col + 1);
188 t->t_cursor.tp_row = t->t_cursor.tp_col = 0;
206 if (t->t_cursor.tp_col == 0) {
207 if (t->t_cursor.tp_row == t->t_originreg.ts_begin)
209 t->t_cursor.tp_row--;
210 t->t_cursor.tp_col = t->t_winsize.tp_col - 1;
212 t->t_cursor.tp_col--;
215 if (t->t_cursor.tp_col == 0)
218 t->t_cursor.tp_col--;
236 t->t_cursor.tp_col = 0;
245 if (ncols > t->t_cursor.tp_col)
246 t->t_cursor.tp_col = 0;
248 t->t_cursor.tp_col -= ncols;
259 if (t->t_cursor.tp_col == 0)
262 t->t_cursor.tp_col--;
265 if (teken_tab_isset(t, t->t_cursor.tp_col))
276 if (t->t_cursor.tp_row + nrows >= t->t_scrollreg.ts_end)
277 t->t_cursor.tp_row = t->t_scrollreg.ts_end - 1;
279 t->t_cursor.tp_row += nrows;
288 if (t->t_cursor.tp_col + ncols >= t->t_winsize.tp_col)
289 t->t_cursor.tp_col = t->t_winsize.tp_col - 1;
291 t->t_cursor.tp_col += ncols;
302 if (t->t_cursor.tp_col == t->t_winsize.tp_col - 1)
305 t->t_cursor.tp_col++;
308 if (teken_tab_isset(t, t->t_cursor.tp_col))
319 t->t_cursor.tp_col = 0;
328 t->t_cursor.tp_row = row < t->t_originreg.ts_end ?
332 t->t_cursor.tp_col = col < t->t_winsize.tp_col ?
356 t->t_cursor.tp_col = 0;
364 if (t->t_scrollreg.ts_begin + nrows >= t->t_cursor.tp_row)
365 t->t_cursor.tp_row = t->t_scrollreg.ts_begin;
367 t->t_cursor.tp_row -= nrows;
377 tr.tr_begin.tp_row = t->t_cursor.tp_row;
378 tr.tr_end.tp_row = t->t_cursor.tp_row + 1;
381 if (t->t_cursor.tp_col + ncols >= t->t_winsize.tp_col) {
382 tr.tr_begin.tp_col = t->t_cursor.tp_col;
385 tr.tr_begin.tp_col = t->t_cursor.tp_col + ncols;
386 teken_funcs_copy(t, &tr, &t->t_cursor);
401 if (t->t_cursor.tp_row < t->t_scrollreg.ts_begin ||
402 t->t_cursor.tp_row >= t->t_scrollreg.ts_end)
409 if (t->t_cursor.tp_row + nrows >= t->t_scrollreg.ts_end) {
410 tr.tr_begin.tp_row = t->t_cursor.tp_row;
415 tr.tr_begin.tp_row = t->t_cursor.tp_row + nrows;
416 tp.tp_row = t->t_cursor.tp_row;
467 tr.tr_begin = t->t_cursor;
468 tr.tr_end.tp_row = t->t_cursor.tp_row + 1;
470 if (t->t_cursor.tp_col + ncols >= t->t_winsize.tp_col)
473 tr.tr_end.tp_col = t->t_cursor.tp_col + ncols;
491 if (t->t_cursor.tp_row == 0)
494 r.tr_end.tp_row = t->t_cursor.tp_row;
504 if (t->t_cursor.tp_row == t->t_winsize.tp_row - 1)
506 r.tr_begin.tp_row = t->t_cursor.tp_row + 1;
519 r.tr_begin.tp_row = t->t_cursor.tp_row;
520 r.tr_end.tp_row = t->t_cursor.tp_row + 1;
525 r.tr_end.tp_col = t->t_cursor.tp_col + 1;
532 r.tr_begin.tp_col = t->t_cursor.tp_col;
587 t->t_cursor.tp_col = col < t->t_winsize.tp_col ?
605 teken_tab_set(t, t->t_cursor.tp_col);
612 if (t->t_cursor.tp_row < t->t_scrollreg.ts_end - 1) {
613 t->t_cursor.tp_row++;
626 tr.tr_begin = t->t_cursor;
627 tr.tr_end.tp_row = t->t_cursor.tp_row + 1;
629 if (t->t_cursor.tp_col + ncols >= t->t_winsize.tp_col) {
636 tp.tp_row = t->t_cursor.tp_row;
637 tp.tp_col = t->t_cursor.tp_col + ncols;
640 tr.tr_end.tp_col = t->t_cursor.tp_col + ncols;
653 if (t->t_cursor.tp_row < t->t_scrollreg.ts_begin ||
654 t->t_cursor.tp_row >= t->t_scrollreg.ts_end)
657 tr.tr_begin.tp_row = t->t_cursor.tp_row;
661 if (t->t_cursor.tp_row + nrows >= t->t_scrollreg.ts_end) {
668 tp.tp_row = t->t_cursor.tp_row + nrows;
672 tr.tr_end.tp_row = t->t_cursor.tp_row + nrows;
697 t->t_cursor.tp_row++;
699 if (t->t_cursor.tp_row >= t->t_scrollreg.ts_end) {
701 t->t_cursor.tp_row = t->t_scrollreg.ts_end - 1;
723 t->t_cursor.tp_row = t->t_originreg.ts_begin;
724 t->t_cursor.tp_col = 0;
736 t->t_cursor.tp_col = 0;
828 teken_subr_do_putchar(t, &t->t_cursor, c, width);
829 t->t_cursor.tp_col += width;
831 if (t->t_cursor.tp_col >= t->t_winsize.tp_col) {
832 if (t->t_cursor.tp_row == t->t_scrollreg.ts_end - 1) {
837 if (t->t_cursor.tp_row <
839 t->t_cursor.tp_row++;
841 t->t_cursor.tp_col = 0;
845 t->t_cursor.tp_col + 1 == t->t_winsize.tp_col) ||
846 t->t_cursor.tp_col + width > t->t_winsize.tp_col)) {
855 if (t->t_cursor.tp_row == t->t_scrollreg.ts_end - 1) {
861 tp.tp_row = t->t_cursor.tp_row + 1;
868 teken_subr_do_putchar(t, &t->t_cursor,
877 t->t_cursor.tp_row = tp.tp_row;
878 t->t_cursor.tp_col = width;
882 teken_subr_do_putchar(t, &t->t_cursor, c, width);
883 t->t_cursor.tp_col += width;
885 if (t->t_cursor.tp_col >= t->t_winsize.tp_col) {
887 t->t_cursor.tp_col = t->t_winsize.tp_col - 1;
918 t->t_cursor.tp_row = t->t_cursor.tp_col = 0;
975 t->t_cursor.tp_row = t->t_cursor.tp_col = 0;
1004 t->t_cursor = t->t_saved_cursor;
1010 if (t->t_cursor.tp_row < t->t_originreg.ts_begin ||
1011 t->t_cursor.tp_row >= t->t_originreg.ts_end) {
1024 if (t->t_cursor.tp_row > t->t_scrollreg.ts_begin) {
1025 t->t_cursor.tp_row--;
1037 t->t_saved_cursor = t->t_cursor;
1075 t->t_cursor.tp_row = t->t_scrollreg.ts_begin;
1076 t->t_cursor.tp_col = 0;
1252 t->t_cursor.tp_row = t->t_originreg.ts_begin;
1253 t->t_cursor.tp_col = 0;
1288 teken_tab_clear(t, t->t_cursor.tp_col);
1301 t->t_cursor.tp_row = row < t->t_originreg.ts_end ?