blob: 4150cbe000a804209387fc0308cfa3010d90e4a8 [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);
Bram Moolenaar06cd14d2023-01-10 12:37:38 +000028void term_enable_mouse(int enable);
Bram Moolenaaref269542016-01-19 13:22:12 +010029void term_set_winpos(int x, int y);
Bram Moolenaar3f54fd32018-03-03 21:29:55 +010030int term_get_winpos(int *x, int *y, varnumber_T timeout);
Bram Moolenaar26af85d2017-07-23 16:45:10 +020031void term_set_winsize(int height, int width);
Bram Moolenaaref269542016-01-19 13:22:12 +010032void term_fg_color(int n);
33void term_bg_color(int n);
Bram Moolenaare023e882020-05-31 16:42:30 +020034void term_ul_color(int n);
Bram Moolenaar7bae0b12019-11-21 22:14:18 +010035char_u *term_bg_default(void);
Bram Moolenaar1b58cdd2016-08-22 23:04:33 +020036void term_fg_rgb_color(guicolor_T rgb);
37void term_bg_rgb_color(guicolor_T rgb);
Bram Moolenaare023e882020-05-31 16:42:30 +020038void term_ul_rgb_color(guicolor_T rgb);
Bram Moolenaaref269542016-01-19 13:22:12 +010039void term_settitle(char_u *title);
Bram Moolenaar40385db2018-08-07 22:31:44 +020040void term_push_title(int which);
41void term_pop_title(int which);
Bram Moolenaaref269542016-01-19 13:22:12 +010042void ttest(int pairs);
43void add_long_to_buf(long_u val, char_u *dst);
Bram Moolenaarb8ff5c22019-09-23 21:16:54 +020044int get_bytes_from_buf(char_u *buf, char_u *bytes, int num_bytes);
Bram Moolenaaref269542016-01-19 13:22:12 +010045void check_shellsize(void);
46void limit_screen_size(void);
47void win_new_shellsize(void);
48void shell_resized(void);
49void shell_resized_check(void);
50void set_shellsize(int width, int height, int mustset);
Bram Moolenaar63a2e362022-11-23 20:20:18 +000051void out_str_t_TE(void);
Bram Moolenaar733a69b2022-12-01 12:03:47 +000052void out_str_t_TI(void);
Bram Moolenaarfc966c12023-01-01 18:04:33 +000053void out_str_t_BE(void);
Bram Moolenaar733a69b2022-12-01 12:03:47 +000054void may_send_t_RK(void);
Bram Moolenaarf4e16ae2020-05-17 16:10:11 +020055void settmode(tmode_T tmode);
Bram Moolenaaref269542016-01-19 13:22:12 +010056void starttermcap(void);
57void stoptermcap(void);
58void may_req_termresponse(void);
Bram Moolenaara45551a2020-06-09 15:57:37 +020059void check_terminal_behavior(void);
Bram Moolenaaref269542016-01-19 13:22:12 +010060void may_req_bg_color(void);
61int swapping_screen(void);
Bram Moolenaaref269542016-01-19 13:22:12 +010062void scroll_start(void);
Bram Moolenaar2e310482018-08-21 13:09:10 +020063void cursor_on_force(void);
Bram Moolenaaref269542016-01-19 13:22:12 +010064void cursor_on(void);
65void cursor_off(void);
Bram Moolenaar09f067f2021-04-11 13:29:18 +020066int cursor_is_sleeping(void);
67void cursor_sleep(void);
68void cursor_unsleep(void);
Bram Moolenaar3cd43cc2017-08-12 19:51:41 +020069void term_cursor_mode(int forced);
70void term_cursor_color(char_u *color);
Bram Moolenaar4db25542017-08-28 22:43:05 +020071int blink_state_is_inverted(void);
Bram Moolenaar3cd43cc2017-08-12 19:51:41 +020072void term_cursor_shape(int shape, int blink);
Bram Moolenaaref269542016-01-19 13:22:12 +010073void scroll_region_set(win_T *wp, int off);
74void scroll_region_reset(void);
75void clear_termcodes(void);
76void add_termcode(char_u *name, char_u *string, int flags);
77char_u *find_termcode(char_u *name);
78char_u *get_termcode(int i);
Bram Moolenaarb8ff5c22019-09-23 21:16:54 +020079int get_termcode_len(int idx);
Bram Moolenaarb20b9e12019-09-21 20:48:04 +020080void del_termcode(char_u *name);
Bram Moolenaaref269542016-01-19 13:22:12 +010081void set_mouse_topline(win_T *wp);
Bram Moolenaarb8ff5c22019-09-23 21:16:54 +020082int is_mouse_topline(win_T *wp);
Bram Moolenaar975a8802020-06-06 22:36:24 +020083int 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 +010084int decode_modifiers(int n);
Bram Moolenaaref269542016-01-19 13:22:12 +010085int check_termcode(int max_offset, char_u *buf, int bufsize, int *buflen);
Bram Moolenaar00ce63d2017-10-15 21:44:45 +020086void term_get_fg_color(char_u *r, char_u *g, char_u *b);
87void term_get_bg_color(char_u *r, char_u *g, char_u *b);
zeertzjq7e0bae02023-08-11 23:15:38 +020088char_u *replace_termcodes(char_u *from, char_u **bufp, scid_T sid_arg, int flags, int *did_simplify);
Bram Moolenaar15a24f02021-12-03 20:43:24 +000089void show_termcodes(int flags);
Bram Moolenaaref269542016-01-19 13:22:12 +010090int show_one_termcode(char_u *name, char_u *code, int printit);
Bram Moolenaaref269542016-01-19 13:22:12 +010091void update_tcap(int attr);
Bram Moolenaarcafafb32018-02-22 21:07:09 +010092void swap_tcap(void);
LemonBoyb2b3acb2022-05-20 10:10:34 +010093void ansi_color2rgb(int nr, char_u *r, char_u *g, char_u *b, char_u *ansi_idx);
Bram Moolenaar9894e392018-05-05 14:29:06 +020094void cterm_color2rgb(int nr, char_u *r, char_u *g, char_u *b, char_u *ansi_idx);
Bram Moolenaar2f7e1b82022-10-04 13:17:31 +010095int term_replace_keycodes(char_u *ta_buf, int ta_len, int len_arg);
Bram Moolenaar071d4272004-06-13 20:20:40 +000096/* vim: set ft=c : */