Home
last modified time | relevance | path

Searched refs:vt (Results 1 – 21 of 21) sorted by relevance

/haiku/src/apps/serialconnect/libvterm/src/
H A Dvterm.c38 VTerm *vt = (*funcs->malloc)(sizeof(VTerm), allocdata); in vterm_new_with_allocator() local
40 vt->allocator = funcs; in vterm_new_with_allocator()
41 vt->allocdata = allocdata; in vterm_new_with_allocator()
43 vt->rows = rows; in vterm_new_with_allocator()
44 vt->cols = cols; in vterm_new_with_allocator()
46 vt->parser_state = NORMAL; in vterm_new_with_allocator()
48 vt->strbuffer_len = 64; in vterm_new_with_allocator()
49 vt->strbuffer_cur = 0; in vterm_new_with_allocator()
50 vt->strbuffer = vterm_allocator_malloc(vt, vt->strbuffer_len); in vterm_new_with_allocator()
52 vt->outbuffer_len = 64; in vterm_new_with_allocator()
[all …]
H A Dparser.c10 static void do_control(VTerm *vt, unsigned char control) in do_control() argument
12 if(vt->parser_callbacks && vt->parser_callbacks->control) in do_control()
13 if((*vt->parser_callbacks->control)(control, vt->cbdata)) in do_control()
19 static void do_string_csi(VTerm *vt, const char *args, size_t arglen, char command) in do_string_csi() argument
99 if(vt->parser_callbacks && vt->parser_callbacks->csi) in do_string_csi()
100 …if((*vt->parser_callbacks->csi)(leaderlen ? leader : NULL, csi_args, argcount, intermedlen ? inter… in do_string_csi()
106 static void append_strbuffer(VTerm *vt, const char *str, size_t len) in append_strbuffer() argument
108 if(len > vt->strbuffer_len - vt->strbuffer_cur) { in append_strbuffer()
109 len = vt->strbuffer_len - vt->strbuffer_cur; in append_strbuffer()
114 strncpy(vt->strbuffer + vt->strbuffer_cur, str, len); in append_strbuffer()
[all …]
H A Dinput.c7 void vterm_input_push_char(VTerm *vt, VTermModifier mod, uint32_t c) in vterm_input_push_char() argument
21 vterm_push_output_bytes(vt, str, seqlen); in vterm_input_push_char()
41 vterm_push_output_sprintf_ctrl(vt, C1_CSI, "%d;%du", c, mod+1); in vterm_input_push_char()
48 vterm_push_output_sprintf(vt, "%s%c", mod & VTERM_MOD_ALT ? "\e" : "", c); in vterm_input_push_char()
125 void vterm_input_push_key(VTerm *vt, VTermModifier mod, VTermKey key) in vterm_input_push_key() argument
158 vterm_push_output_sprintf_ctrl(vt, C1_CSI, "Z"); in vterm_input_push_key()
160 vterm_push_output_sprintf_ctrl(vt, C1_CSI, "1;%dZ", mod+1); in vterm_input_push_key()
167 if(vt->state->mode.newline) in vterm_input_push_key()
168 vterm_push_output_sprintf(vt, "\r\n"); in vterm_input_push_key()
175 vterm_push_output_sprintf_ctrl(vt, C1_CSI, "%d;%du", k.literal, mod+1); in vterm_input_push_key()
[all …]
H A Dvterm_internal.h43 VTerm *vt; member
176 void *vterm_allocator_malloc(VTerm *vt, size_t size);
177 void vterm_allocator_free(VTerm *vt, void *ptr);
179 void vterm_push_output_bytes(VTerm *vt, const char *bytes, size_t len);
180 void vterm_push_output_vsprintf(VTerm *vt, const char *format, va_list args);
181 void vterm_push_output_sprintf(VTerm *vt, const char *format, ...);
182 void vterm_push_output_sprintf_ctrl(VTerm *vt, unsigned char ctrl, const char *fmt, ...);
183 void vterm_push_output_sprintf_dcs(VTerm *vt, const char *fmt, ...);
H A Dstate.c57 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()
[all …]
H A Dscreen.c43 VTerm *vt; member
82 …ScreenCell *new_buffer = vterm_allocator_malloc(screen->vt, sizeof(ScreenCell) * new_rows * new_co… in realloc_buffer()
99 vterm_allocator_free(screen->vt, buffer); in realloc_buffer()
526 vterm_allocator_free(screen->vt, screen->sb_buffer); in resize()
528 screen->sb_buffer = vterm_allocator_malloc(screen->vt, sizeof(VTermScreenCell) * new_cols); in resize()
627 static VTermScreen *screen_new(VTerm *vt) in screen_new() argument
629 VTermState *state = vterm_obtain_state(vt); in screen_new()
636 screen = vterm_allocator_malloc(vt, sizeof(VTermScreen)); in screen_new()
638 vterm_get_size(vt, &rows, &cols); in screen_new()
640 screen->vt = vt; in screen_new()
[all …]
/haiku/src/apps/serialconnect/libvterm/include/
H A Dvterm.h120 void vterm_free(VTerm* vt);
122 void vterm_get_size(const VTerm *vt, int *rowsp, int *colsp);
123 void vterm_set_size(VTerm *vt, int rows, int cols);
125 void vterm_push_bytes(VTerm *vt, const char *bytes, size_t len);
127 void vterm_input_push_char(VTerm *vt, VTermModifier state, uint32_t c);
128 void vterm_input_push_key(VTerm *vt, VTermModifier state, VTermKey key);
130 size_t vterm_output_bufferlen(VTerm *vt); /* deprecated */
132 size_t vterm_output_get_buffer_size(const VTerm *vt);
133 size_t vterm_output_get_buffer_current(const VTerm *vt);
134 size_t vterm_output_get_buffer_remaining(const VTerm *vt);
[all …]
/haiku/src/add-ons/accelerants/via/engine/
H A Dcrtc.c13 uint16 *vd_e,uint16 *vs_s,uint16 *vs_e,uint16 *vt in eng_crtc_validate_timing() argument
55 if (*vt > (0x7ff + 2)) *vt = (0x7ff + 2); in eng_crtc_validate_timing()
64 if (*vt < (*vd_e + 3)) *vt = (*vd_e + 3); in eng_crtc_validate_timing()
67 if (*vt > (*vd_e + 0xff)) *vt = (*vd_e + 0xff); in eng_crtc_validate_timing()
70 if (*vs_e > (*vt - 1)) *vs_e = (*vt - 1); in eng_crtc_validate_timing()
H A Dcrtc2.c13 uint16 *vd_e,uint16 *vs_s,uint16 *vs_e,uint16 *vt in eng_crtc2_validate_timing() argument
54 if (*vt > (0x7ff + 2)) *vt = (0x7ff + 2); in eng_crtc2_validate_timing()
61 if (*vt < (*vd_e + 3)) *vt = (*vd_e + 3); in eng_crtc2_validate_timing()
64 if (*vt > (*vd_e + 0xff)) *vt = (*vd_e + 0xff); in eng_crtc2_validate_timing()
67 if (*vs_e > (*vt - 1)) *vs_e = (*vt - 1); in eng_crtc2_validate_timing()
H A Dproto.h65 uint16 *vd_e,uint16 *vs_s,uint16 *vs_e,uint16 *vt
85 uint16 *vd_e,uint16 *vs_s,uint16 *vs_e,uint16 *vt
/haiku/src/add-ons/accelerants/matrox/engine/
H A Dmga_crtc.c15 uint16 *vd_e,uint16 *vs_s,uint16 *vs_e,uint16 *vt in gx00_crtc_validate_timing() argument
69 if (*vt > (0xfff + 2)) *vt = (0xfff + 2); in gx00_crtc_validate_timing()
90 if (*vt < (*vd_e + 3)) *vt = (*vd_e + 3); in gx00_crtc_validate_timing()
93 if (*vt > (*vd_e + 0xff)) *vt = (*vd_e + 0xff); in gx00_crtc_validate_timing()
96 if (*vs_e > (*vt - 1)) *vs_e = (*vt - 1); in gx00_crtc_validate_timing()
H A Dmga_proto.h85 uint16 *vd_e,uint16 *vs_s,uint16 *vs_e,uint16 *vt
/haiku/src/add-ons/accelerants/skeleton/engine/
H A Dcrtc2.c13 uint16 *vd_e,uint16 *vs_s,uint16 *vs_e,uint16 *vt in eng_crtc2_validate_timing() argument
54 if (*vt > (0x7ff + 2)) *vt = (0x7ff + 2); in eng_crtc2_validate_timing()
61 if (*vt < (*vd_e + 3)) *vt = (*vd_e + 3); in eng_crtc2_validate_timing()
64 if (*vt > (*vd_e + 0xff)) *vt = (*vd_e + 0xff); in eng_crtc2_validate_timing()
67 if (*vs_e > (*vt - 1)) *vs_e = (*vt - 1); in eng_crtc2_validate_timing()
H A Dcrtc.c13 uint16 *vd_e,uint16 *vs_s,uint16 *vs_e,uint16 *vt in eng_crtc_validate_timing() argument
61 if (*vt > (0x7ff + 2)) *vt = (0x7ff + 2); in eng_crtc_validate_timing()
75 if (*vt < (*vd_e + 3)) *vt = (*vd_e + 3); in eng_crtc_validate_timing()
78 if (*vt > (*vd_e + 0xff)) *vt = (*vd_e + 0xff); in eng_crtc_validate_timing()
81 if (*vs_e > (*vt - 1)) *vs_e = (*vt - 1); in eng_crtc_validate_timing()
H A Dproto.h65 uint16 *vd_e,uint16 *vs_s,uint16 *vs_e,uint16 *vt
85 uint16 *vd_e,uint16 *vs_s,uint16 *vs_e,uint16 *vt
/haiku/src/add-ons/accelerants/neomagic/engine/
H A Dnm_crtc.c13 uint16 *vd_e,uint16 *vs_s,uint16 *vs_e,uint16 *vt in nm_crtc_validate_timing() argument
57 if (*vt > (0x3ff + 2)) *vt = (0x3ff + 2); in nm_crtc_validate_timing()
64 if (*vt > (0x7ff + 2)) *vt = (0x7ff + 2); in nm_crtc_validate_timing()
72 if (*vt < (*vd_e + 3)) *vt = (*vd_e + 3); in nm_crtc_validate_timing()
76 if (*vt > (*vd_e + 0xff)) *vt = (*vd_e + 0xff); in nm_crtc_validate_timing()
79 if (*vs_e > (*vt - 1)) *vs_e = (*vt - 1); in nm_crtc_validate_timing()
H A Dnm_proto.h38 uint16 *vd_e,uint16 *vs_s,uint16 *vs_e,uint16 *vt
/haiku/src/add-ons/accelerants/nvidia/engine/
H A Dnv_crtc2.c111 uint16 *vd_e,uint16 *vs_s,uint16 *vs_e,uint16 *vt in nv_crtc2_validate_timing() argument
152 if (*vt > (0x7ff + 2)) *vt = (0x7ff + 2); in nv_crtc2_validate_timing()
159 if (*vt < (*vd_e + 3)) *vt = (*vd_e + 3); in nv_crtc2_validate_timing()
162 if (*vt > (*vd_e + 0xff)) *vt = (*vd_e + 0xff); in nv_crtc2_validate_timing()
165 if (*vs_e > (*vt - 1)) *vs_e = (*vt - 1); in nv_crtc2_validate_timing()
H A Dnv_crtc.c111 uint16 *vd_e,uint16 *vs_s,uint16 *vs_e,uint16 *vt in nv_crtc_validate_timing() argument
159 if (*vt > (0x7ff + 2)) *vt = (0x7ff + 2); in nv_crtc_validate_timing()
173 if (*vt < (*vd_e + 3)) *vt = (*vd_e + 3); in nv_crtc_validate_timing()
176 if (*vt > (*vd_e + 0xff)) *vt = (*vd_e + 0xff); in nv_crtc_validate_timing()
179 if (*vs_e > (*vt - 1)) *vs_e = (*vt - 1); in nv_crtc_validate_timing()
H A Dnv_proto.h78 uint16 *vd_e,uint16 *vs_s,uint16 *vs_e,uint16 *vt);
98 uint16 *vd_e,uint16 *vs_s,uint16 *vs_e,uint16 *vt);
/haiku/data/catalogs/apps/devices/
H A Dhu.catkeys17 ACPI Processor Namespace '%2' DeviceACPI ACPI processzor névtér '%2'