Lines Matching refs:col
32 fprintf(stderr, "libvterm: Unhandled putglyph U+%04x at (%d,%d)\n", chars[0], pos.col, pos.row);
37 if(state->pos.col == oldpos->col && state->pos.row == oldpos->row)
121 static void set_col_tabstop(VTermState *state, int col)
123 unsigned char mask = 1 << (col & 7);
124 state->tabstops[col >> 3] |= mask;
127 static void clear_col_tabstop(VTermState *state, int col)
129 unsigned char mask = 1 << (col & 7);
130 state->tabstops[col >> 3] &= ~mask;
133 static int is_col_tabstop(VTermState *state, int col)
135 unsigned char mask = 1 << (col & 7);
136 return state->tabstops[col >> 3] & mask;
142 while(state->pos.col >= 0 && state->pos.col < state->cols-1) {
143 state->pos.col += direction;
145 if(is_col_tabstop(state, state->pos.col))
180 if(state->pos.row == state->combine_pos.row && state->pos.col == state->combine_pos.col + state->combine_width) {
246 if(state->at_phantom || state->pos.col + width > state->cols) {
248 state->pos.col = 0;
260 .start_col = state->pos.col,
283 if(state->pos.col + width >= state->cols) {
288 state->pos.col += width;
310 if(state->pos.col > 0)
311 state->pos.col--;
323 state->pos.col = 0;
327 state->pos.col = 0;
344 state->pos.col = 0;
348 set_col_tabstop(state, state->pos.col);
383 static void output_mouse(VTermState *state, int code, int pressed, int modifiers, int col, int row)
389 if(col + 0x21 > 0xff)
390 col = 0xff - 0x21;
398 (code | modifiers) + 0x20, col + 0x21, row + 0x21);
409 len += fill_utf8(col + 0x21, utf8 + len);
418 code | modifiers, col + 1, row + 1, pressed ? 'M' : 'm');
426 code | modifiers, col + 1, row + 1);
431 static void mousefunc(int col, int row, int button, int pressed, int modifiers, void *data)
439 state->mouse_col = col;
455 output_mouse(state, button-1, pressed, modifiers, col, row);
458 output_mouse(state, button-4 + 0x40, pressed, modifiers, col, row);
461 else if(col != old_col || row != old_row) {
467 output_mouse(state, button-1 + 0x20, 1, modifiers, col, row);
555 for(pos.col = 0; pos.col < state->cols; pos.col++)
669 state->pos.col = state->mode.origin ? SCROLLREGION_LEFT(state) : 0;
855 int row, col;
871 rect.start_col = state->pos.col;
892 state->pos.col += count;
898 state->pos.col -= count;
904 state->pos.col = 0;
911 state->pos.col = 0;
918 state->pos.col = val-1;
924 col = argcount < 2 || CSI_ARG_IS_MISSING(args[1]) ? 1 : CSI_ARG(args[1]);
927 state->pos.col = col-1;
930 state->pos.col += SCROLLREGION_LEFT(state);
947 rect.start_col = state->pos.col; rect.end_col = state->cols;
964 rect.end_col = state->pos.col + 1;
986 rect.start_col = state->pos.col; rect.end_col = state->cols; break;
988 rect.start_col = 0; rect.end_col = state->pos.col + 1; break;
1029 rect.start_col = state->pos.col;
1065 rect.start_col = state->pos.col;
1066 rect.end_col = state->pos.col + count;
1078 col = CSI_ARG_OR(args[0], 1);
1079 state->pos.col = col-1;
1085 state->pos.col += count;
1116 col = argcount < 2 || CSI_ARG_IS_MISSING(args[1]) ? 1 : CSI_ARG(args[1]);
1119 state->pos.col = col-1;
1122 state->pos.col += SCROLLREGION_LEFT(state);
1132 clear_col_tabstop(state, state->pos.col);
1136 for(col = 0; col < state->cols; col++)
1137 clear_col_tabstop(state, col);
1161 state->pos.col -= count;
1200 vterm_push_output_sprintf_ctrl(state->vt, C1_CSI, "%s%d;%dR", qmark, state->pos.row + 1, state->pos.col + 1);
1281 rect.start_col = state->pos.col;
1293 rect.start_col = state->pos.col;
1307 LBOUND(state->pos.col, SCROLLREGION_LEFT(state));
1308 UBOUND(state->pos.col, SCROLLREGION_RIGHT(state)-1);
1313 LBOUND(state->pos.col, 0);
1314 UBOUND(state->pos.col, state->cols-1);
1416 int col;
1417 for(col = 0; col < state->cols && col < cols; col++) {
1418 unsigned char mask = 1 << (col & 7);
1419 if(state->tabstops[col >> 3] & mask)
1420 newtabstops[col >> 3] |= mask;
1422 newtabstops[col >> 3] &= ~mask;
1425 for( ; col < cols; col++) {
1426 unsigned char mask = 1 << (col & 7);
1427 if(col % 8 == 0)
1428 newtabstops[col >> 3] |= mask;
1430 newtabstops[col >> 3] &= ~mask;
1445 if(state->at_phantom && state->pos.col < cols-1) {
1447 state->pos.col++;
1451 state->pos.col += delta.col;
1455 if(state->pos.col >= cols)
1456 state->pos.col = cols - 1;
1513 for(int col = 0; col < state->cols; col++)
1514 if(col % 8 == 0)
1515 set_col_tabstop(state, col);
1517 clear_col_tabstop(state, col);
1547 state->pos.col = 0;