blob: 949b3500068eeaedb97ac7271244814dba284c12 [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 Moolenaaref269542016-01-19 13:22:12 +01007int set_termname(char_u *term);
Bram Moolenaarb3a29552021-11-19 11:28:04 +00008void free_cur_term(void);
Bram Moolenaaref269542016-01-19 13:22:12 +01009void getlinecol(long *cp, long *rp);
10int add_termcap_entry(char_u *name, int force);
11int term_is_8bit(char_u *name);
12int term_is_gui(char_u *name);
13char_u *tltoa(unsigned long i);
14void termcapinit(char_u *name);
15void out_flush(void);
Bram Moolenaara338adc2018-01-31 20:51:47 +010016void out_flush_cursor(int force, int clear_selection);
Bram Moolenaaref269542016-01-19 13:22:12 +010017void out_flush_check(void);
18void out_trash(void);
19void out_char(unsigned c);
20void out_str_nf(char_u *s);
Bram Moolenaar2e147ca2017-06-27 17:09:37 +020021void out_str_cf(char_u *s);
Bram Moolenaaref269542016-01-19 13:22:12 +010022void out_str(char_u *s);
23void term_windgoto(int row, int col);
24void term_cursor_right(int i);
25void term_append_lines(int line_count);
26void term_delete_lines(int line_count);
27void term_set_winpos(int x, int y);
Bram Moolenaar3f54fd32018-03-03 21:29:55 +010028int term_get_winpos(int *x, int *y, varnumber_T timeout);
Bram Moolenaar26af85d2017-07-23 16:45:10 +020029void term_set_winsize(int height, int width);
Bram Moolenaaref269542016-01-19 13:22:12 +010030void term_fg_color(int n);
31void term_bg_color(int n);
Bram Moolenaare023e882020-05-31 16:42:30 +020032void term_ul_color(int n);
Bram Moolenaar7bae0b12019-11-21 22:14:18 +010033char_u *term_bg_default(void);
Bram Moolenaar1b58cdd2016-08-22 23:04:33 +020034void term_fg_rgb_color(guicolor_T rgb);
35void term_bg_rgb_color(guicolor_T rgb);
Bram Moolenaare023e882020-05-31 16:42:30 +020036void term_ul_rgb_color(guicolor_T rgb);
Bram Moolenaaref269542016-01-19 13:22:12 +010037void term_settitle(char_u *title);
Bram Moolenaar40385db2018-08-07 22:31:44 +020038void term_push_title(int which);
39void term_pop_title(int which);
Bram Moolenaaref269542016-01-19 13:22:12 +010040void ttest(int pairs);
41void add_long_to_buf(long_u val, char_u *dst);
Bram Moolenaarb8ff5c22019-09-23 21:16:54 +020042int get_bytes_from_buf(char_u *buf, char_u *bytes, int num_bytes);
Bram Moolenaaref269542016-01-19 13:22:12 +010043void check_shellsize(void);
44void limit_screen_size(void);
45void win_new_shellsize(void);
46void shell_resized(void);
47void shell_resized_check(void);
48void set_shellsize(int width, int height, int mustset);
Bram Moolenaarf4e16ae2020-05-17 16:10:11 +020049void settmode(tmode_T tmode);
Bram Moolenaaref269542016-01-19 13:22:12 +010050void starttermcap(void);
51void stoptermcap(void);
52void may_req_termresponse(void);
Bram Moolenaara45551a2020-06-09 15:57:37 +020053void check_terminal_behavior(void);
Bram Moolenaaref269542016-01-19 13:22:12 +010054void may_req_bg_color(void);
55int swapping_screen(void);
Bram Moolenaaref269542016-01-19 13:22:12 +010056void scroll_start(void);
Bram Moolenaar2e310482018-08-21 13:09:10 +020057void cursor_on_force(void);
Bram Moolenaaref269542016-01-19 13:22:12 +010058void cursor_on(void);
59void cursor_off(void);
Bram Moolenaar09f067f2021-04-11 13:29:18 +020060int cursor_is_sleeping(void);
61void cursor_sleep(void);
62void cursor_unsleep(void);
Bram Moolenaar3cd43cc2017-08-12 19:51:41 +020063void term_cursor_mode(int forced);
64void term_cursor_color(char_u *color);
Bram Moolenaar4db25542017-08-28 22:43:05 +020065int blink_state_is_inverted(void);
Bram Moolenaar3cd43cc2017-08-12 19:51:41 +020066void term_cursor_shape(int shape, int blink);
Bram Moolenaaref269542016-01-19 13:22:12 +010067void scroll_region_set(win_T *wp, int off);
68void scroll_region_reset(void);
69void clear_termcodes(void);
70void add_termcode(char_u *name, char_u *string, int flags);
71char_u *find_termcode(char_u *name);
72char_u *get_termcode(int i);
Bram Moolenaarb8ff5c22019-09-23 21:16:54 +020073int get_termcode_len(int idx);
Bram Moolenaarb20b9e12019-09-21 20:48:04 +020074void del_termcode(char_u *name);
Bram Moolenaaref269542016-01-19 13:22:12 +010075void set_mouse_topline(win_T *wp);
Bram Moolenaarb8ff5c22019-09-23 21:16:54 +020076int is_mouse_topline(win_T *wp);
Bram Moolenaar975a8802020-06-06 22:36:24 +020077int 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 +010078int decode_modifiers(int n);
Bram Moolenaaref269542016-01-19 13:22:12 +010079int check_termcode(int max_offset, char_u *buf, int bufsize, int *buflen);
Bram Moolenaar00ce63d2017-10-15 21:44:45 +020080void term_get_fg_color(char_u *r, char_u *g, char_u *b);
81void term_get_bg_color(char_u *r, char_u *g, char_u *b);
Bram Moolenaar459fd782019-10-13 16:43:39 +020082char_u *replace_termcodes(char_u *from, char_u **bufp, int flags, int *did_simplify);
Bram Moolenaaref269542016-01-19 13:22:12 +010083void show_termcodes(void);
84int show_one_termcode(char_u *name, char_u *code, int printit);
Bram Moolenaaref269542016-01-19 13:22:12 +010085void update_tcap(int attr);
Bram Moolenaarcafafb32018-02-22 21:07:09 +010086void swap_tcap(void);
Bram Moolenaar9894e392018-05-05 14:29:06 +020087void cterm_color2rgb(int nr, char_u *r, char_u *g, char_u *b, char_u *ansi_idx);
Bram Moolenaarf4140482020-02-15 23:06:45 +010088void term_replace_bs_del_keycode(char_u *ta_buf, int ta_len, int len);
Bram Moolenaar071d4272004-06-13 20:20:40 +000089/* vim: set ft=c : */