Lines Matching refs:vt

57 static VTermState *vterm_state_new(VTerm *vt)  in vterm_state_new()  argument
59 VTermState *state = vterm_allocator_malloc(vt, sizeof(VTermState)); in vterm_state_new()
61 state->vt = vt; in vterm_state_new()
63 state->rows = vt->rows; in vterm_state_new()
64 state->cols = vt->cols; in vterm_state_new()
75 vterm_allocator_free(state->vt, state->tabstops); in vterm_state_free()
76 vterm_allocator_free(state->vt, state->lineinfo); in vterm_state_free()
77 vterm_allocator_free(state->vt, state->combine_chars); in vterm_state_free()
78 vterm_allocator_free(state->vt, state); in vterm_state_free()
128 uint32_t *new_chars = vterm_allocator_malloc(state->vt, new_size * sizeof(new_chars[0])); in grow_combine_buffer()
132 vterm_allocator_free(state->vt, state->combine_chars); in grow_combine_buffer()
215 state->vt->mode.utf8 ? &state->encoding_utf8 : in on_text()
449 vterm_push_output_sprintf_ctrl(state->vt, C1_CSI, "M%c%c%c", in output_mouse()
465 vterm_push_output_sprintf_ctrl(state->vt, C1_CSI, "M%s", utf8); in output_mouse()
470 vterm_push_output_sprintf_ctrl(state->vt, C1_CSI, "<%d;%d;%d%c", in output_mouse()
478 vterm_push_output_sprintf_ctrl(state->vt, C1_CSI, "%d;%d;%dM", in output_mouse()
586 state->vt->mode.ctrl8bit = 0; in on_escape()
590 state->vt->mode.ctrl8bit = 1; in on_escape()
892 vterm_push_output_sprintf_ctrl(state->vt, C1_CSI, "?%d;%d$y", num, 0); in request_dec_mode()
896 vterm_push_output_sprintf_ctrl(state->vt, C1_CSI, "?%d;%d$y", num, reply ? 1 : 2); in request_dec_mode()
1189 vterm_push_output_sprintf_ctrl(state->vt, C1_CSI, "?1;2c"); in on_csi()
1193 vterm_push_output_sprintf_ctrl(state->vt, C1_CSI, ">%d;%d;%dc", 0, 100, 0); in on_csi()
1293 vterm_push_output_sprintf_ctrl(state->vt, C1_CSI, "%s0n", qmark); in on_csi()
1296 …vterm_push_output_sprintf_ctrl(state->vt, C1_CSI, "%s%d;%dR", qmark, state->pos.row + 1, state->po… in on_csi()
1462 vterm_push_output_sprintf_ctrl(state->vt, C1_DCS, "1$r"); in request_status_string()
1464 vterm_push_output_sprintf(state->vt, in request_status_string()
1469 vterm_push_output_sprintf(state->vt, "m"); in request_status_string()
1470 vterm_push_output_sprintf_ctrl(state->vt, C1_ST, ""); in request_status_string()
1474 …vterm_push_output_sprintf_dcs(state->vt, "1$r%d;%dr", state->scrollregion_top+1, SCROLLREGION_BOTT… in request_status_string()
1477 …vterm_push_output_sprintf_dcs(state->vt, "1$r%d;%ds", SCROLLREGION_LEFT(state)+1, SCROLLREGION_RIG… in request_status_string()
1491 vterm_push_output_sprintf_dcs(state->vt, "1$r%d q", reply); in request_status_string()
1495 vterm_push_output_sprintf_dcs(state->vt, "1$r%d\"q", state->protected_cell ? 1 : 2); in request_status_string()
1500 vterm_push_output_sprintf_dcs(state->vt, "0$r%.s", (int)cmdlen, command); in request_status_string()
1521 unsigned char *newtabstops = vterm_allocator_malloc(state->vt, (cols + 7) / 8); in on_resize()
1541 vterm_allocator_free(state->vt, state->tabstops); in on_resize()
1546 VTermLineInfo *newlineinfo = vterm_allocator_malloc(state->vt, rows * sizeof(VTermLineInfo)); in on_resize()
1559 vterm_allocator_free(state->vt, state->lineinfo); in on_resize()
1599 VTermState *vterm_obtain_state(VTerm *vt) in vterm_obtain_state() argument
1601 if(vt->state) in vterm_obtain_state()
1602 return vt->state; in vterm_obtain_state()
1604 VTermState *state = vterm_state_new(vt); in vterm_obtain_state()
1605 vt->state = state; in vterm_obtain_state()
1608 …state->combine_chars = vterm_allocator_malloc(state->vt, state->combine_chars_size * sizeof(state-… in vterm_obtain_state()
1610 state->tabstops = vterm_allocator_malloc(state->vt, (state->cols + 7) / 8); in vterm_obtain_state()
1612 state->lineinfo = vterm_allocator_malloc(state->vt, state->rows * sizeof(VTermLineInfo)); in vterm_obtain_state()
1618 vterm_set_parser_callbacks(vt, &parser_callbacks, state); in vterm_obtain_state()
1639 state->vt->mode.ctrl8bit = 0; in vterm_state_reset()
1655 VTermEncoding *default_enc = state->vt->mode.utf8 ? in vterm_state_reset()