Lines Matching refs:el_terminal
87 #define GoodStr(a) (el->el_terminal.t_str[a] != NULL && \
88 el->el_terminal.t_str[a][0] != '\0')
89 #define Str(a) el->el_terminal.t_str[a]
90 #define Val(a) el->el_terminal.t_val[a]
272 el->el_terminal.t_buf = el_malloc(TC_BUFSIZE * in terminal_init()
273 sizeof(*el->el_terminal.t_buf)); in terminal_init()
274 if (el->el_terminal.t_buf == NULL) in terminal_init()
276 el->el_terminal.t_cap = el_malloc(TC_BUFSIZE * in terminal_init()
277 sizeof(*el->el_terminal.t_cap)); in terminal_init()
278 if (el->el_terminal.t_cap == NULL) in terminal_init()
280 el->el_terminal.t_fkey = el_malloc(A_K_NKEYS * in terminal_init()
281 sizeof(*el->el_terminal.t_fkey)); in terminal_init()
282 if (el->el_terminal.t_fkey == NULL) in terminal_init()
284 el->el_terminal.t_loc = 0; in terminal_init()
285 el->el_terminal.t_str = el_malloc(T_str * in terminal_init()
286 sizeof(*el->el_terminal.t_str)); in terminal_init()
287 if (el->el_terminal.t_str == NULL) in terminal_init()
289 (void) memset(el->el_terminal.t_str, 0, T_str * in terminal_init()
290 sizeof(*el->el_terminal.t_str)); in terminal_init()
291 el->el_terminal.t_val = el_malloc(T_val * in terminal_init()
292 sizeof(*el->el_terminal.t_val)); in terminal_init()
293 if (el->el_terminal.t_val == NULL) in terminal_init()
295 (void) memset(el->el_terminal.t_val, 0, T_val * in terminal_init()
296 sizeof(*el->el_terminal.t_val)); in terminal_init()
309 el_free(el->el_terminal.t_buf); in terminal_end()
310 el->el_terminal.t_buf = NULL; in terminal_end()
311 el_free(el->el_terminal.t_cap); in terminal_end()
312 el->el_terminal.t_cap = NULL; in terminal_end()
313 el->el_terminal.t_loc = 0; in terminal_end()
314 el_free(el->el_terminal.t_str); in terminal_end()
315 el->el_terminal.t_str = NULL; in terminal_end()
316 el_free(el->el_terminal.t_val); in terminal_end()
317 el->el_terminal.t_val = NULL; in terminal_end()
318 el_free(el->el_terminal.t_fkey); in terminal_end()
319 el->el_terminal.t_fkey = NULL; in terminal_end()
332 char **tlist = el->el_terminal.t_str; in terminal_alloc()
355 if (el->el_terminal.t_loc + 3 < TC_BUFSIZE) { in terminal_alloc()
357 (void) strcpy(*str = &el->el_terminal.t_buf[ in terminal_alloc()
358 el->el_terminal.t_loc], cap); in terminal_alloc()
359 el->el_terminal.t_loc += clen + 1; /* one for \0 */ in terminal_alloc()
375 memcpy(el->el_terminal.t_buf, termbuf, TC_BUFSIZE); in terminal_alloc()
376 el->el_terminal.t_loc = tlen; in terminal_alloc()
377 if (el->el_terminal.t_loc + 3 >= TC_BUFSIZE) { in terminal_alloc()
383 (void) strcpy(*str = &el->el_terminal.t_buf[el->el_terminal.t_loc], in terminal_alloc()
385 el->el_terminal.t_loc += (size_t)clen + 1; /* one for \0 */ in terminal_alloc()
396 coord_t *c = &el->el_terminal.t_size; in terminal_rebuffer_display()
417 coord_t *c = &el->el_terminal.t_size; in terminal_alloc_display()
490 if (where > el->el_terminal.t_size.v) { in terminal_move_to_line()
503 (el->el_terminal.t_size.h - 1); in terminal_move_to_line()
515 (size_t)(el->el_terminal.t_size.h - in terminal_move_to_line()
557 if (where > el->el_terminal.t_size.h) { in terminal_move_to_char()
652 if (n > (size_t)el->el_terminal.t_size.h) { in terminal_overwrite()
666 if (el->el_cursor.h >= el->el_terminal.t_size.h) { /* wrap? */ in terminal_overwrite()
688 el->el_cursor.h = el->el_terminal.t_size.h - 1; in terminal_overwrite()
708 if (num > el->el_terminal.t_size.h) { in terminal_deletechars()
749 if (num > el->el_terminal.t_size.h) { in terminal_insertwrite()
850 *term = el->el_terminal.t_name; in terminal_get()
883 (void) memset(el->el_terminal.t_cap, 0, TC_BUFSIZE); in terminal_set()
885 i = tgetent(el->el_terminal.t_cap, term); in terminal_set()
926 el->el_terminal.t_size.v = Val(T_co); in terminal_set()
927 el->el_terminal.t_size.h = Val(T_li); in terminal_set()
937 el->el_terminal.t_name = term; in terminal_set()
1005 funckey_t *arrow = el->el_terminal.t_fkey; in terminal_init_arrow()
1050 funckey_t *arrow = el->el_terminal.t_fkey; in terminal_reset_arrow()
1101 funckey_t *arrow = el->el_terminal.t_fkey; in terminal_set_arrow()
1120 funckey_t *arrow = el->el_terminal.t_fkey; in terminal_clear_arrow()
1139 funckey_t *arrow = el->el_terminal.t_fkey; in terminal_print_arrow()
1159 funckey_t *arrow = el->el_terminal.t_fkey; in terminal_bind_arrow()
1162 if (el->el_terminal.t_buf == NULL || el->el_map.key == NULL) in terminal_bind_arrow()
1175 p = el->el_terminal.t_str[arrow[i].key]; in terminal_bind_arrow()
1306 for (t = tstr, ts = el->el_terminal.t_str; t->name != NULL; t++, ts++) { in terminal_telltc()
1368 el->el_terminal.t_val[tv - tval] = 1; in terminal_settc()
1370 el->el_terminal.t_val[tv - tval] = 0; in terminal_settc()
1390 el->el_terminal.t_val[tv - tval] = (int) i; in terminal_settc()
1391 el->el_terminal.t_size.v = Val(T_co); in terminal_settc()
1392 el->el_terminal.t_size.h = Val(T_li); in terminal_settc()
1428 *(char **)how = el->el_terminal.t_str[ts - tstr]; in terminal_gettc()
1445 if (el->el_terminal.t_val[tv - tval]) in terminal_gettc()
1451 *(int *)how = el->el_terminal.t_val[tv - tval]; in terminal_gettc()
1528 scap = el->el_terminal.t_str[t - tstr]; in terminal_echotc()