/haiku/src/apps/serialconnect/libvterm/src/ |
H A D | vterm.c | 38 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 D | parser.c | 10 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 D | input.c | 7 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 D | vterm_internal.h | 43 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 D | state.c | 57 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 D | screen.c | 43 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 D | vterm.h | 120 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 D | crtc.c | 13 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 D | crtc2.c | 13 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 D | proto.h | 65 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 D | crtc.c | 13 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 D | crtc2.c | 13 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 D | proto.h | 65 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 D | mga_crtc.c | 15 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 D | mga_proto.h | 85 uint16 *vd_e,uint16 *vs_s,uint16 *vs_e,uint16 *vt
|
/haiku/src/add-ons/accelerants/neomagic/engine/ |
H A D | nm_crtc.c | 13 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 D | nm_proto.h | 38 uint16 *vd_e,uint16 *vs_s,uint16 *vs_e,uint16 *vt
|
/haiku/src/add-ons/accelerants/nvidia/engine/ |
H A D | nv_crtc.c | 111 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 D | nv_crtc2.c | 111 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 D | nv_proto.h | 78 uint16 *vd_e,uint16 *vs_s,uint16 *vs_e,uint16 *vt); 98 uint16 *vd_e,uint16 *vs_s,uint16 *vs_e,uint16 *vt);
|