blob: 40934eae9ae64ffc1564c48d9dffcf9d1b9711a8 [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 Moolenaaracc770a2020-04-12 15:11:06 +02004void set_color_count(int nr);
Bram Moolenaaref269542016-01-19 13:22:12 +01005int set_termname(char_u *term);
Bram Moolenaaref269542016-01-19 13:22:12 +01006void getlinecol(long *cp, long *rp);
7int add_termcap_entry(char_u *name, int force);
8int term_is_8bit(char_u *name);
9int term_is_gui(char_u *name);
10char_u *tltoa(unsigned long i);
11void termcapinit(char_u *name);
12void out_flush(void);
Bram Moolenaara338adc2018-01-31 20:51:47 +010013void out_flush_cursor(int force, int clear_selection);
Bram Moolenaaref269542016-01-19 13:22:12 +010014void out_flush_check(void);
15void out_trash(void);
16void out_char(unsigned c);
17void out_str_nf(char_u *s);
Bram Moolenaar2e147ca2017-06-27 17:09:37 +020018void out_str_cf(char_u *s);
Bram Moolenaaref269542016-01-19 13:22:12 +010019void out_str(char_u *s);
20void term_windgoto(int row, int col);
21void term_cursor_right(int i);
22void term_append_lines(int line_count);
23void term_delete_lines(int line_count);
24void term_set_winpos(int x, int y);
Bram Moolenaar3f54fd32018-03-03 21:29:55 +010025int term_get_winpos(int *x, int *y, varnumber_T timeout);
Bram Moolenaar26af85d2017-07-23 16:45:10 +020026void term_set_winsize(int height, int width);
Bram Moolenaaref269542016-01-19 13:22:12 +010027void term_fg_color(int n);
28void term_bg_color(int n);
Bram Moolenaare023e882020-05-31 16:42:30 +020029void term_ul_color(int n);
Bram Moolenaar7bae0b12019-11-21 22:14:18 +010030char_u *term_bg_default(void);
Bram Moolenaar1b58cdd2016-08-22 23:04:33 +020031void term_fg_rgb_color(guicolor_T rgb);
32void term_bg_rgb_color(guicolor_T rgb);
Bram Moolenaare023e882020-05-31 16:42:30 +020033void term_ul_rgb_color(guicolor_T rgb);
Bram Moolenaaref269542016-01-19 13:22:12 +010034void term_settitle(char_u *title);
Bram Moolenaar40385db2018-08-07 22:31:44 +020035void term_push_title(int which);
36void term_pop_title(int which);
Bram Moolenaaref269542016-01-19 13:22:12 +010037void ttest(int pairs);
38void add_long_to_buf(long_u val, char_u *dst);
Bram Moolenaarb8ff5c22019-09-23 21:16:54 +020039int get_bytes_from_buf(char_u *buf, char_u *bytes, int num_bytes);
Bram Moolenaaref269542016-01-19 13:22:12 +010040void check_shellsize(void);
41void limit_screen_size(void);
42void win_new_shellsize(void);
43void shell_resized(void);
44void shell_resized_check(void);
45void set_shellsize(int width, int height, int mustset);
Bram Moolenaarf4e16ae2020-05-17 16:10:11 +020046void settmode(tmode_T tmode);
Bram Moolenaaref269542016-01-19 13:22:12 +010047void starttermcap(void);
48void stoptermcap(void);
49void may_req_termresponse(void);
Bram Moolenaara45551a2020-06-09 15:57:37 +020050void check_terminal_behavior(void);
Bram Moolenaaref269542016-01-19 13:22:12 +010051void may_req_bg_color(void);
52int swapping_screen(void);
Bram Moolenaaref269542016-01-19 13:22:12 +010053void scroll_start(void);
Bram Moolenaar2e310482018-08-21 13:09:10 +020054void cursor_on_force(void);
Bram Moolenaaref269542016-01-19 13:22:12 +010055void cursor_on(void);
56void cursor_off(void);
Bram Moolenaar3cd43cc2017-08-12 19:51:41 +020057void term_cursor_mode(int forced);
58void term_cursor_color(char_u *color);
Bram Moolenaar4db25542017-08-28 22:43:05 +020059int blink_state_is_inverted(void);
Bram Moolenaar3cd43cc2017-08-12 19:51:41 +020060void term_cursor_shape(int shape, int blink);
Bram Moolenaaref269542016-01-19 13:22:12 +010061void scroll_region_set(win_T *wp, int off);
62void scroll_region_reset(void);
63void clear_termcodes(void);
64void add_termcode(char_u *name, char_u *string, int flags);
65char_u *find_termcode(char_u *name);
66char_u *get_termcode(int i);
Bram Moolenaarb8ff5c22019-09-23 21:16:54 +020067int get_termcode_len(int idx);
Bram Moolenaarb20b9e12019-09-21 20:48:04 +020068void del_termcode(char_u *name);
Bram Moolenaaref269542016-01-19 13:22:12 +010069void set_mouse_topline(win_T *wp);
Bram Moolenaarb8ff5c22019-09-23 21:16:54 +020070int is_mouse_topline(win_T *wp);
Bram Moolenaar975a8802020-06-06 22:36:24 +020071int 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 +010072int decode_modifiers(int n);
Bram Moolenaaref269542016-01-19 13:22:12 +010073int check_termcode(int max_offset, char_u *buf, int bufsize, int *buflen);
Bram Moolenaar00ce63d2017-10-15 21:44:45 +020074void term_get_fg_color(char_u *r, char_u *g, char_u *b);
75void term_get_bg_color(char_u *r, char_u *g, char_u *b);
Bram Moolenaar459fd782019-10-13 16:43:39 +020076char_u *replace_termcodes(char_u *from, char_u **bufp, int flags, int *did_simplify);
Bram Moolenaaref269542016-01-19 13:22:12 +010077void show_termcodes(void);
78int show_one_termcode(char_u *name, char_u *code, int printit);
Bram Moolenaaref269542016-01-19 13:22:12 +010079void update_tcap(int attr);
Bram Moolenaarcafafb32018-02-22 21:07:09 +010080void swap_tcap(void);
Bram Moolenaarab302212016-04-26 20:59:29 +020081guicolor_T gui_get_color_cmn(char_u *name);
Bram Moolenaar26af85d2017-07-23 16:45:10 +020082guicolor_T gui_get_rgb_color_cmn(int r, int g, int b);
Bram Moolenaar9894e392018-05-05 14:29:06 +020083void cterm_color2rgb(int nr, char_u *r, char_u *g, char_u *b, char_u *ansi_idx);
Bram Moolenaarf4140482020-02-15 23:06:45 +010084void term_replace_bs_del_keycode(char_u *ta_buf, int ta_len, int len);
Bram Moolenaar071d4272004-06-13 20:20:40 +000085/* vim: set ft=c : */