Lines Matching refs:col

34   fprintf(stderr, "libvterm: Unhandled putglyph U+%04x at (%d,%d)\n", chars[0], pos.col, pos.row);
39 if(state->pos.col == oldpos->col && state->pos.row == oldpos->row)
138 static void set_col_tabstop(VTermState *state, int col)
140 unsigned char mask = 1 << (col & 7);
141 state->tabstops[col >> 3] |= mask;
144 static void clear_col_tabstop(VTermState *state, int col)
146 unsigned char mask = 1 << (col & 7);
147 state->tabstops[col >> 3] &= ~mask;
150 static int is_col_tabstop(VTermState *state, int col)
152 unsigned char mask = 1 << (col & 7);
153 return state->tabstops[col >> 3] & mask;
159 while(state->pos.col >= 0 && state->pos.col < THISROWWIDTH(state)-1) {
160 state->pos.col += direction;
162 if(is_col_tabstop(state, state->pos.col))
230 if(state->pos.row == state->combine_pos.row && state->pos.col == state->combine_pos.col + state->combine_width) {
299 if(state->at_phantom || state->pos.col + width > THISROWWIDTH(state)) {
301 state->pos.col = 0;
313 .start_col = state->pos.col,
337 if(state->pos.col + width >= THISROWWIDTH(state)) {
342 state->pos.col += width;
364 if(state->pos.col > 0)
365 state->pos.col--;
377 state->pos.col = 0;
381 state->pos.col = 0;
398 state->pos.col = 0;
402 set_col_tabstop(state, state->pos.col);
437 static void output_mouse(VTermState *state, int code, int pressed, int modifiers, int col, int row)
443 if(col + 0x21 > 0xff)
444 col = 0xff - 0x21;
452 (code | modifiers) + 0x20, col + 0x21, row + 0x21);
463 len += fill_utf8(col + 0x21, utf8 + len);
473 code | modifiers, col + 1, row + 1, pressed ? 'M' : 'm');
481 code | modifiers, col + 1, row + 1);
486 static void mousefunc(int col, int row, int button, int pressed, int modifiers, void *data)
494 state->mouse_col = col;
510 output_mouse(state, button-1, pressed, modifiers, col, row);
513 output_mouse(state, button-4 + 0x40, pressed, modifiers, col, row);
516 else if(col != old_col || row != old_row) {
522 output_mouse(state, button-1 + 0x20, 1, modifiers, col, row);
635 for(pos.col = 0; pos.col < ROWWIDTH(state, pos.row); pos.col++)
749 state->pos.col = state->mode.origin ? SCROLLREGION_LEFT(state) : 0;
912 int row, col;
960 rect.start_col = state->pos.col;
984 state->pos.col += count;
990 state->pos.col -= count;
996 state->pos.col = 0;
1003 state->pos.col = 0;
1010 state->pos.col = val-1;
1016 col = argcount < 2 || CSI_ARG_IS_MISSING(args[1]) ? 1 : CSI_ARG(args[1]);
1019 state->pos.col = col-1;
1022 state->pos.col += SCROLLREGION_LEFT(state);
1039 rect.start_col = state->pos.col; rect.end_col = state->cols;
1060 rect.end_col = state->pos.col + 1;
1084 rect.start_col = state->pos.col; rect.end_col = THISROWWIDTH(state); break;
1086 rect.start_col = 0; rect.end_col = state->pos.col + 1; break;
1127 rect.start_col = state->pos.col;
1166 rect.start_col = state->pos.col;
1167 rect.end_col = state->pos.col + count;
1179 col = CSI_ARG_OR(args[0], 1);
1180 state->pos.col = col-1;
1186 state->pos.col += count;
1217 col = argcount < 2 || CSI_ARG_IS_MISSING(args[1]) ? 1 : CSI_ARG(args[1]);
1220 state->pos.col = col-1;
1223 state->pos.col += SCROLLREGION_LEFT(state);
1233 clear_col_tabstop(state, state->pos.col);
1237 for(col = 0; col < state->cols; col++)
1238 clear_col_tabstop(state, col);
1262 state->pos.col -= count;
1301 vterm_push_output_sprintf_ctrl(state->vt, C1_CSI, "%s%d;%dR", qmark, state->pos.row + 1, state->pos.col + 1);
1394 rect.start_col = state->pos.col;
1406 rect.start_col = state->pos.col;
1420 LBOUND(state->pos.col, SCROLLREGION_LEFT(state));
1421 UBOUND(state->pos.col, SCROLLREGION_RIGHT(state)-1);
1426 LBOUND(state->pos.col, 0);
1427 UBOUND(state->pos.col, THISROWWIDTH(state)-1);
1531 int col;
1532 for(col = 0; col < state->cols && col < cols; col++) {
1533 unsigned char mask = 1 << (col & 7);
1534 if(state->tabstops[col >> 3] & mask)
1535 newtabstops[col >> 3] |= mask;
1537 newtabstops[col >> 3] &= ~mask;
1540 for( ; col < cols; col++) {
1541 unsigned char mask = 1 << (col & 7);
1542 if(col % 8 == 0)
1543 newtabstops[col >> 3] |= mask;
1545 newtabstops[col >> 3] &= ~mask;
1576 if(state->at_phantom && state->pos.col < cols-1) {
1578 state->pos.col++;
1582 state->pos.col += delta.col;
1586 if(state->pos.col >= cols)
1587 state->pos.col = cols - 1;
1631 int col, i, row;
1650 for(col = 0; col < state->cols; col++)
1651 if(col % 8 == 0)
1652 set_col_tabstop(state, col);
1654 clear_col_tabstop(state, col);
1688 state->pos.col = 0;