blob: 8c8b813521e8cc7b4ed7df90d339539654fa290f [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001/* term.c */
Bram Moolenaar61be73b2016-04-29 22:59:22 +02002guicolor_T termgui_get_color(char_u *name);
Bram Moolenaar1b58cdd2016-08-22 23:04:33 +02003guicolor_T termgui_mch_get_rgb(guicolor_T color);
Bram Moolenaar0c0eddd2020-06-13 15:47:25 +02004void init_term_props(int all);
5void f_terminalprops(typval_T *argvars, typval_T *rettv);
Bram Moolenaaracc770a2020-04-12 15:11:06 +02006void set_color_count(int nr);
Bram Moolenaar63a2e362022-11-23 20:20:18 +00007keyprot_T match_keyprotocol(char_u *term);
Bram Moolenaaref269542016-01-19 13:22:12 +01008int set_termname(char_u *term);
Bram Moolenaarb3a29552021-11-19 11:28:04 +00009void free_cur_term(void);
Bram Moolenaaref269542016-01-19 13:22:12 +010010void getlinecol(long *cp, long *rp);
11int add_termcap_entry(char_u *name, int force);
12int term_is_8bit(char_u *name);
13int term_is_gui(char_u *name);
14char_u *tltoa(unsigned long i);
15void termcapinit(char_u *name);
16void out_flush(void);
Bram Moolenaara338adc2018-01-31 20:51:47 +010017void out_flush_cursor(int force, int clear_selection);
Bram Moolenaaref269542016-01-19 13:22:12 +010018void out_flush_check(void);
19void out_trash(void);
20void out_char(unsigned c);
21void out_str_nf(char_u *s);
Bram Moolenaar2e147ca2017-06-27 17:09:37 +020022void out_str_cf(char_u *s);
Bram Moolenaaref269542016-01-19 13:22:12 +010023void out_str(char_u *s);
24void term_windgoto(int row, int col);
25void term_cursor_right(int i);
26void term_append_lines(int line_count);
27void term_delete_lines(int line_count);
28void term_set_winpos(int x, int y);
Bram Moolenaar3f54fd32018-03-03 21:29:55 +010029int term_get_winpos(int *x, int *y, varnumber_T timeout);
Bram Moolenaar26af85d2017-07-23 16:45:10 +020030void term_set_winsize(int height, int width);
Bram Moolenaaref269542016-01-19 13:22:12 +010031void term_fg_color(int n);
32void term_bg_color(int n);
Bram Moolenaare023e882020-05-31 16:42:30 +020033void term_ul_color(int n);
Bram Moolenaar7bae0b12019-11-21 22:14:18 +010034char_u *term_bg_default(void);
Bram Moolenaar1b58cdd2016-08-22 23:04:33 +020035void term_fg_rgb_color(guicolor_T rgb);
36void term_bg_rgb_color(guicolor_T rgb);
Bram Moolenaare023e882020-05-31 16:42:30 +020037void term_ul_rgb_color(guicolor_T rgb);
Bram Moolenaaref269542016-01-19 13:22:12 +010038void term_settitle(char_u *title);
Bram Moolenaar40385db2018-08-07 22:31:44 +020039void term_push_title(int which);
40void term_pop_title(int which);
Bram Moolenaaref269542016-01-19 13:22:12 +010041void ttest(int pairs);
42void add_long_to_buf(long_u val, char_u *dst);
Bram Moolenaarb8ff5c22019-09-23 21:16:54 +020043int get_bytes_from_buf(char_u *buf, char_u *bytes, int num_bytes);
Bram Moolenaaref269542016-01-19 13:22:12 +010044void check_shellsize(void);
45void limit_screen_size(void);
46void win_new_shellsize(void);
47void shell_resized(void);
48void shell_resized_check(void);
49void set_shellsize(int width, int height, int mustset);
Bram Moolenaar63a2e362022-11-23 20:20:18 +000050void out_str_t_TE(void);
Bram Moolenaar733a69b2022-12-01 12:03:47 +000051void out_str_t_TI(void);
Bram Moolenaarfc966c12023-01-01 18:04:33 +000052void out_str_t_BE(void);
Bram Moolenaar733a69b2022-12-01 12:03:47 +000053void may_send_t_RK(void);
Bram Moolenaarf4e16ae2020-05-17 16:10:11 +020054void settmode(tmode_T tmode);
Bram Moolenaaref269542016-01-19 13:22:12 +010055void starttermcap(void);
56void stoptermcap(void);
57void may_req_termresponse(void);
Bram Moolenaara45551a2020-06-09 15:57:37 +020058void check_terminal_behavior(void);
Bram Moolenaaref269542016-01-19 13:22:12 +010059void may_req_bg_color(void);
60int swapping_screen(void);
Bram Moolenaaref269542016-01-19 13:22:12 +010061void scroll_start(void);
Bram Moolenaar2e310482018-08-21 13:09:10 +020062void cursor_on_force(void);
Bram Moolenaaref269542016-01-19 13:22:12 +010063void cursor_on(void);
64void cursor_off(void);
Bram Moolenaar09f067f2021-04-11 13:29:18 +020065int cursor_is_sleeping(void);
66void cursor_sleep(void);
67void cursor_unsleep(void);
Bram Moolenaar3cd43cc2017-08-12 19:51:41 +020068void term_cursor_mode(int forced);
69void term_cursor_color(char_u *color);
Bram Moolenaar4db25542017-08-28 22:43:05 +020070int blink_state_is_inverted(void);
Bram Moolenaar3cd43cc2017-08-12 19:51:41 +020071void term_cursor_shape(int shape, int blink);
Bram Moolenaaref269542016-01-19 13:22:12 +010072void scroll_region_set(win_T *wp, int off);
73void scroll_region_reset(void);
74void clear_termcodes(void);
75void add_termcode(char_u *name, char_u *string, int flags);
76char_u *find_termcode(char_u *name);
77char_u *get_termcode(int i);
Bram Moolenaarb8ff5c22019-09-23 21:16:54 +020078int get_termcode_len(int idx);
Bram Moolenaarb20b9e12019-09-21 20:48:04 +020079void del_termcode(char_u *name);
Bram Moolenaaref269542016-01-19 13:22:12 +010080void set_mouse_topline(win_T *wp);
Bram Moolenaarb8ff5c22019-09-23 21:16:54 +020081int is_mouse_topline(win_T *wp);
Bram Moolenaar975a8802020-06-06 22:36:24 +020082int put_string_in_typebuf(int offset, int slen, char_u *string, int new_slen, char_u *buf, int bufsize, int *buflen);
Bram Moolenaarfc4ea2a2019-11-26 19:33:22 +010083int decode_modifiers(int n);
Bram Moolenaaref269542016-01-19 13:22:12 +010084int check_termcode(int max_offset, char_u *buf, int bufsize, int *buflen);
Bram Moolenaar00ce63d2017-10-15 21:44:45 +020085void term_get_fg_color(char_u *r, char_u *g, char_u *b);
86void term_get_bg_color(char_u *r, char_u *g, char_u *b);
Bram Moolenaar459fd782019-10-13 16:43:39 +020087char_u *replace_termcodes(char_u *from, char_u **bufp, int flags, int *did_simplify);
Bram Moolenaar15a24f02021-12-03 20:43:24 +000088void show_termcodes(int flags);
Bram Moolenaaref269542016-01-19 13:22:12 +010089int show_one_termcode(char_u *name, char_u *code, int printit);
Bram Moolenaaref269542016-01-19 13:22:12 +010090void update_tcap(int attr);
Bram Moolenaarcafafb32018-02-22 21:07:09 +010091void swap_tcap(void);
LemonBoyb2b3acb2022-05-20 10:10:34 +010092void ansi_color2rgb(int nr, char_u *r, char_u *g, char_u *b, char_u *ansi_idx);
Bram Moolenaar9894e392018-05-05 14:29:06 +020093void cterm_color2rgb(int nr, char_u *r, char_u *g, char_u *b, char_u *ansi_idx);
Bram Moolenaar2f7e1b82022-10-04 13:17:31 +010094int term_replace_keycodes(char_u *ta_buf, int ta_len, int len_arg);
Bram Moolenaar071d4272004-06-13 20:20:40 +000095/* vim: set ft=c : */