Lines Matching refs:vt

57 static VTermState *vterm_state_new(VTerm *vt)
59 VTermState *state = vterm_allocator_malloc(vt, sizeof(VTermState));
61 state->vt = vt;
63 state->rows = vt->rows;
64 state->cols = vt->cols;
75 vterm_allocator_free(state->vt, state->tabstops);
76 vterm_allocator_free(state->vt, state->lineinfo);
77 vterm_allocator_free(state->vt, state->combine_chars);
78 vterm_allocator_free(state->vt, state);
128 uint32_t *new_chars = vterm_allocator_malloc(state->vt, new_size * sizeof(new_chars[0]));
132 vterm_allocator_free(state->vt, state->combine_chars);
216 state->vt->mode.utf8 ? &state->encoding_utf8 :
451 vterm_push_output_sprintf_ctrl(state->vt, C1_CSI, "M%c%c%c",
467 vterm_push_output_sprintf_ctrl(state->vt, C1_CSI, "M%s", utf8);
472 vterm_push_output_sprintf_ctrl(state->vt, C1_CSI, "<%d;%d;%d%c",
480 vterm_push_output_sprintf_ctrl(state->vt, C1_CSI, "%d;%d;%dM",
589 state->vt->mode.ctrl8bit = 0;
593 state->vt->mode.ctrl8bit = 1;
896 vterm_push_output_sprintf_ctrl(state->vt, C1_CSI, "?%d;%d$y", num, 0);
900 vterm_push_output_sprintf_ctrl(state->vt, C1_CSI, "?%d;%d$y", num, reply ? 1 : 2);
1194 vterm_push_output_sprintf_ctrl(state->vt, C1_CSI, "?1;2c");
1198 vterm_push_output_sprintf_ctrl(state->vt, C1_CSI, ">%d;%d;%dc", 0, 100, 0);
1298 vterm_push_output_sprintf_ctrl(state->vt, C1_CSI, "%s0n", qmark);
1301 vterm_push_output_sprintf_ctrl(state->vt, C1_CSI, "%s%d;%dR", qmark, state->pos.row + 1, state->pos.col + 1);
1468 vterm_push_output_sprintf_ctrl(state->vt, C1_DCS, "1$r");
1470 vterm_push_output_sprintf(state->vt,
1475 vterm_push_output_sprintf(state->vt, "m");
1476 vterm_push_output_sprintf_ctrl(state->vt, C1_ST, "");
1480 vterm_push_output_sprintf_dcs(state->vt, "1$r%d;%dr", state->scrollregion_top+1, SCROLLREGION_BOTTOM(state));
1483 vterm_push_output_sprintf_dcs(state->vt, "1$r%d;%ds", SCROLLREGION_LEFT(state)+1, SCROLLREGION_RIGHT(state));
1497 vterm_push_output_sprintf_dcs(state->vt, "1$r%d q", reply);
1501 vterm_push_output_sprintf_dcs(state->vt, "1$r%d\"q", state->protected_cell ? 1 : 2);
1506 vterm_push_output_sprintf_dcs(state->vt, "0$r%.s", (int)cmdlen, command);
1528 unsigned char *newtabstops = vterm_allocator_malloc(state->vt, (cols + 7) / 8);
1548 vterm_allocator_free(state->vt, state->tabstops);
1553 VTermLineInfo *newlineinfo = vterm_allocator_malloc(state->vt, rows * sizeof(VTermLineInfo));
1566 vterm_allocator_free(state->vt, state->lineinfo);
1604 VTermState *vterm_obtain_state(VTerm *vt)
1607 if(vt->state)
1608 return vt->state;
1610 state = vterm_state_new(vt);
1611 vt->state = state;
1614 state->combine_chars = vterm_allocator_malloc(state->vt, state->combine_chars_size * sizeof(state->combine_chars[0]));
1616 state->tabstops = vterm_allocator_malloc(state->vt, (state->cols + 7) / 8);
1618 state->lineinfo = vterm_allocator_malloc(state->vt, state->rows * sizeof(VTermLineInfo));
1624 vterm_set_parser_callbacks(vt, &parser_callbacks, state);
1648 state->vt->mode.ctrl8bit = 0;
1664 default_enc = state->vt->mode.utf8 ?