blob: 34b381866f5909030b6d12a7403c58fa7166f00a [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001/* message.c */
Bram Moolenaar32526b32019-01-19 17:43:09 +01002int msg(char *s);
3int verb_msg(char *s);
4int msg_attr(char *s, int attr);
5int msg_attr_keep(char *s, int attr, int keep);
Bram Moolenaaref269542016-01-19 13:22:12 +01006char_u *msg_strtrunc(char_u *s, int force);
Bram Moolenaara6b7a082016-08-10 20:53:05 +02007void trunc_string(char_u *s, char_u *buf, int room_in, int buflen);
Bram Moolenaaref269542016-01-19 13:22:12 +01008void reset_last_sourcing(void);
9void msg_source(int attr);
Bram Moolenaare0c31f62017-03-01 15:07:05 +010010void ignore_error_for_testing(char_u *error);
Bram Moolenaarb869c0d2016-07-20 00:10:51 +020011void do_perror(char *msg);
Bram Moolenaarf9e3e092019-01-13 23:38:42 +010012int emsg(char *s);
Bram Moolenaarf9e3e092019-01-13 23:38:42 +010013void iemsg(char *s);
Bram Moolenaar95f09602016-11-10 20:01:45 +010014void internal_error(char *where);
Bram Moolenaardd589232020-02-29 17:38:12 +010015void internal_error_no_abort(char *where);
Bram Moolenaaref269542016-01-19 13:22:12 +010016void emsg_invreg(int name);
Bram Moolenaar8a7d6542020-01-26 15:56:19 +010017void emsg_namelen(char *msg, char_u *name, int len);
Bram Moolenaar32526b32019-01-19 17:43:09 +010018char *msg_trunc_attr(char *s, int force, int attr);
Bram Moolenaaref269542016-01-19 13:22:12 +010019char_u *msg_may_trunc(int force, char_u *s);
20int delete_first_msg(void);
Christian Brabandt51d4d842024-12-06 17:26:25 +010021int messagesopt_changed(void);
Bram Moolenaaref269542016-01-19 13:22:12 +010022void ex_messages(exarg_T *eap);
23void msg_end_prompt(void);
24void wait_return(int redraw);
25void set_keep_msg(char_u *s, int attr);
26void set_keep_msg_from_hist(void);
27void msg_start(void);
28void msg_starthere(void);
29void msg_putchar(int c);
30void msg_putchar_attr(int c, int attr);
31void msg_outnum(long n);
32void msg_home_replace(char_u *fname);
33void msg_home_replace_hl(char_u *fname);
34int msg_outtrans(char_u *str);
35int msg_outtrans_attr(char_u *str, int attr);
36int msg_outtrans_len(char_u *str, int len);
37char_u *msg_outtrans_one(char_u *p, int attr);
38int msg_outtrans_len_attr(char_u *msgstr, int len, int attr);
39void msg_make(char_u *arg);
Bram Moolenaar725310d2019-04-24 23:08:23 +020040int msg_outtrans_special(char_u *strstart, int from, int maxlen);
zeertzjqcdc83932022-09-12 13:38:41 +010041char_u *str2special_save(char_u *str, int replace_spaces, int replace_lt);
42char_u *str2special(char_u **sp, int replace_spaces, int replace_lt);
Bram Moolenaaref269542016-01-19 13:22:12 +010043void str2specialbuf(char_u *sp, char_u *buf, int len);
44void msg_prt_line(char_u *s, int list);
Bram Moolenaar32526b32019-01-19 17:43:09 +010045void msg_puts(char *s);
46void msg_puts_title(char *s);
47void msg_outtrans_long_attr(char_u *longstr, int attr);
Bram Moolenaar32526b32019-01-19 17:43:09 +010048void msg_puts_attr(char *s, int attr);
Bram Moolenaar7b668e82016-08-23 23:51:21 +020049int message_filtered(char_u *msg);
Bram Moolenaaref269542016-01-19 13:22:12 +010050void may_clear_sb_text(void);
Bram Moolenaarf2405ed2017-03-16 19:58:25 +010051void sb_text_start_cmdline(void);
zeertzjq46af7bc2022-07-28 12:34:09 +010052void sb_text_restart_cmdline(void);
Bram Moolenaarf2405ed2017-03-16 19:58:25 +010053void sb_text_end_cmdline(void);
54void clear_sb_text(int all);
Bram Moolenaaref269542016-01-19 13:22:12 +010055void show_sb_text(void);
56void msg_sb_eol(void);
57int msg_use_printf(void);
58void mch_errmsg(char *str);
59void mch_msg(char *str);
Bram Moolenaaref269542016-01-19 13:22:12 +010060void repeat_message(void);
61void msg_clr_eos(void);
62void msg_clr_eos_force(void);
63void msg_clr_cmdline(void);
64int msg_end(void);
65void msg_check(void);
66int redirecting(void);
67void verbose_enter(void);
68void verbose_leave(void);
69void verbose_enter_scroll(void);
70void verbose_leave_scroll(void);
71void verbose_stop(void);
72int verbose_open(void);
73void give_warning(char_u *message, int hl);
Bram Moolenaarcc7eb2a2021-07-11 19:12:04 +020074void give_warning_with_source(char_u *message, int hl, int with_source);
Bram Moolenaarf8be4612017-06-23 20:52:40 +020075void give_warning2(char_u *message, char_u *a1, int hl);
Bram Moolenaaref269542016-01-19 13:22:12 +010076void msg_advance(int col);
Christian Brabandt45e07042024-11-11 20:52:55 +010077void msg_warn_missing_clipboard(void);
Bram Moolenaaref269542016-01-19 13:22:12 +010078int do_dialog(int type, char_u *title, char_u *message, char_u *buttons, int dfltbutton, char_u *textfield, int ex_cmd);
Bram Moolenaaref269542016-01-19 13:22:12 +010079int vim_dialog_yesno(int type, char_u *title, char_u *message, int dflt);
80int vim_dialog_yesnocancel(int type, char_u *title, char_u *message, int dflt);
81int vim_dialog_yesnoallcancel(int type, char_u *title, char_u *message, int dflt);
Bram Moolenaar071d4272004-06-13 20:20:40 +000082/* vim: set ft=c : */