Searched refs:vt (Results 1 - 20 of 20) sorted by relevance

/haiku/src/apps/serialconnect/libvterm/src/
H A Dvterm.c38 VTerm *vt = (*funcs->malloc)(sizeof(VTerm), allocdata); local
40 vt->allocator = funcs;
41 vt->allocdata = allocdata;
43 vt->rows = rows;
44 vt->cols = cols;
46 vt->parser_state = NORMAL;
48 vt->strbuffer_len = 64;
49 vt->strbuffer_cur = 0;
50 vt->strbuffer = vterm_allocator_malloc(vt, v
59 vterm_free(VTerm *vt) argument
73 vterm_allocator_malloc(VTerm *vt, size_t size) argument
78 vterm_allocator_free(VTerm *vt, void *ptr) argument
83 vterm_get_size(const VTerm *vt, int *rowsp, int *colsp) argument
91 vterm_set_size(VTerm *vt, int rows, int cols) argument
100 vterm_set_parser_callbacks(VTerm *vt, const VTermParserCallbacks *callbacks, void *user) argument
106 vterm_parser_set_utf8(VTerm *vt, int is_utf8) argument
111 vterm_push_output_bytes(VTerm *vt, const char *bytes, size_t len) argument
122 vterm_push_output_vsprintf(VTerm *vt, const char *format, va_list args) argument
130 vterm_push_output_sprintf(VTerm *vt, const char *format, ...) argument
138 vterm_push_output_sprintf_ctrl(VTerm *vt, unsigned char ctrl, const char *fmt, ...) argument
152 vterm_push_output_sprintf_dcs(VTerm *vt, const char *fmt, ...) argument
168 vterm_output_bufferlen(VTerm *vt) argument
173 vterm_output_get_buffer_size(const VTerm *vt) argument
178 vterm_output_get_buffer_current(const VTerm *vt) argument
183 vterm_output_get_buffer_remaining(const VTerm *vt) argument
188 vterm_output_bufferread(VTerm *vt, char *buffer, size_t len) argument
[all...]
H A Dparser.c10 static void do_control(VTerm *vt, unsigned char control) argument
12 if(vt->parser_callbacks && vt->parser_callbacks->control)
13 if((*vt->parser_callbacks->control)(control, vt->cbdata))
19 static void do_string_csi(VTerm *vt, const char *args, size_t arglen, char command) argument
99 if(vt->parser_callbacks && vt->parser_callbacks->csi)
100 if((*vt->parser_callbacks->csi)(leaderlen ? leader : NULL, csi_args, argcount, intermedlen ? intermed : NULL, command, vt
106 append_strbuffer(VTerm *vt, const char *str, size_t len) argument
119 do_string(VTerm *vt, const char *str_frag, size_t len) argument
190 vterm_push_bytes(VTerm *vt, const char *bytes, size_t len) argument
[all...]
H A Dinput.c7 void vterm_input_push_char(VTerm *vt, VTermModifier mod, uint32_t c) argument
21 vterm_push_output_bytes(vt, str, seqlen);
41 vterm_push_output_sprintf_ctrl(vt, C1_CSI, "%d;%du", c, mod+1);
48 vterm_push_output_sprintf(vt, "%s%c", mod & VTERM_MOD_ALT ? "\e" : "", c);
125 void vterm_input_push_key(VTerm *vt, VTermModifier mod, VTermKey key) argument
158 vterm_push_output_sprintf_ctrl(vt, C1_CSI, "Z");
160 vterm_push_output_sprintf_ctrl(vt, C1_CSI, "1;%dZ", mod+1);
167 if(vt->state->mode.newline)
168 vterm_push_output_sprintf(vt, "\r\n");
175 vterm_push_output_sprintf_ctrl(vt, C1_CS
[all...]
H A Dvterm_internal.h43 VTerm *vt; member in struct:VTermState
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) argument
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, stat
1604 vterm_obtain_state(VTerm *vt) argument
[all...]
H A Dscreen.c43 VTerm *vt; member in struct:VTermScreen
82 ScreenCell *new_buffer = vterm_allocator_malloc(screen->vt, sizeof(ScreenCell) * new_rows * new_cols);
99 vterm_allocator_free(screen->vt, buffer);
526 vterm_allocator_free(screen->vt, screen->sb_buffer);
528 screen->sb_buffer = vterm_allocator_malloc(screen->vt, sizeof(VTermScreenCell) * new_cols);
627 static VTermScreen *screen_new(VTerm *vt) argument
629 VTermState *state = vterm_obtain_state(vt);
636 screen = vterm_allocator_malloc(vt, sizeof(VTermScreen));
638 vterm_get_size(vt, &rows, &cols);
640 screen->vt
824 vterm_obtain_screen(VTerm *vt) argument
[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/skeleton/engine/
H A Dcrtc.c13 uint16 *vd_e,uint16 *vs_s,uint16 *vs_e,uint16 *vt
61 if (*vt > (0x7ff + 2)) *vt = (0x7ff + 2);
75 if (*vt < (*vd_e + 3)) *vt = (*vd_e + 3);
78 if (*vt > (*vd_e + 0xff)) *vt = (*vd_e + 0xff);
81 if (*vs_e > (*vt - 1)) *vs_e = (*vt - 1);
H A Dcrtc2.c13 uint16 *vd_e,uint16 *vs_s,uint16 *vs_e,uint16 *vt
54 if (*vt > (0x7ff + 2)) *vt = (0x7ff + 2);
61 if (*vt < (*vd_e + 3)) *vt = (*vd_e + 3);
64 if (*vt > (*vd_e + 0xff)) *vt = (*vd_e + 0xff);
67 if (*vs_e > (*vt - 1)) *vs_e = (*vt - 1);
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/via/engine/
H A Dcrtc.c13 uint16 *vd_e,uint16 *vs_s,uint16 *vs_e,uint16 *vt
55 if (*vt > (0x7ff + 2)) *vt = (0x7ff + 2);
64 if (*vt < (*vd_e + 3)) *vt = (*vd_e + 3);
67 if (*vt > (*vd_e + 0xff)) *vt = (*vd_e + 0xff);
70 if (*vs_e > (*vt - 1)) *vs_e = (*vt - 1);
H A Dcrtc2.c13 uint16 *vd_e,uint16 *vs_s,uint16 *vs_e,uint16 *vt
54 if (*vt > (0x7ff + 2)) *vt = (0x7ff + 2);
61 if (*vt < (*vd_e + 3)) *vt = (*vd_e + 3);
64 if (*vt > (*vd_e + 0xff)) *vt = (*vd_e + 0xff);
67 if (*vs_e > (*vt - 1)) *vs_e = (*vt - 1);
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
69 if (*vt > (0xfff + 2)) *vt = (0xfff + 2);
90 if (*vt < (*vd_e + 3)) *vt = (*vd_e + 3);
93 if (*vt > (*vd_e + 0xff)) *vt = (*vd_e + 0xff);
96 if (*vs_e > (*vt - 1)) *vs_e = (*vt - 1);
H A Dmga_proto.h85 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
57 if (*vt > (0x3ff + 2)) *vt = (0x3ff + 2);
64 if (*vt > (0x7ff + 2)) *vt = (0x7ff + 2);
72 if (*vt < (*vd_e + 3)) *vt = (*vd_e + 3);
76 if (*vt > (*vd_e + 0xff)) *vt = (*vd_e + 0xff);
79 if (*vs_e > (*vt
[all...]
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_crtc.c111 uint16 *vd_e,uint16 *vs_s,uint16 *vs_e,uint16 *vt
159 if (*vt > (0x7ff + 2)) *vt = (0x7ff + 2);
173 if (*vt < (*vd_e + 3)) *vt = (*vd_e + 3);
176 if (*vt > (*vd_e + 0xff)) *vt = (*vd_e + 0xff);
179 if (*vs_e > (*vt - 1)) *vs_e = (*vt - 1);
H A Dnv_crtc2.c111 uint16 *vd_e,uint16 *vs_s,uint16 *vs_e,uint16 *vt
152 if (*vt > (0x7ff + 2)) *vt = (0x7ff + 2);
159 if (*vt < (*vd_e + 3)) *vt = (*vd_e + 3);
162 if (*vt > (*vd_e + 0xff)) *vt = (*vd_e + 0xff);
165 if (*vs_e > (*vt - 1)) *vs_e = (*vt - 1);
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);

Completed in 144 milliseconds