Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1 | /* message.c */ |
Bram Moolenaar | 32526b3 | 2019-01-19 17:43:09 +0100 | [diff] [blame] | 2 | int msg(char *s); |
| 3 | int verb_msg(char *s); |
| 4 | int msg_attr(char *s, int attr); |
| 5 | int msg_attr_keep(char *s, int attr, int keep); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 6 | char_u *msg_strtrunc(char_u *s, int force); |
Bram Moolenaar | a6b7a08 | 2016-08-10 20:53:05 +0200 | [diff] [blame] | 7 | void trunc_string(char_u *s, char_u *buf, int room_in, int buflen); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 8 | void reset_last_sourcing(void); |
| 9 | void msg_source(int attr); |
Bram Moolenaar | e0c31f6 | 2017-03-01 15:07:05 +0100 | [diff] [blame] | 10 | void ignore_error_for_testing(char_u *error); |
Bram Moolenaar | b869c0d | 2016-07-20 00:10:51 +0200 | [diff] [blame] | 11 | void do_perror(char *msg); |
Bram Moolenaar | f9e3e09 | 2019-01-13 23:38:42 +0100 | [diff] [blame] | 12 | int emsg(char *s); |
Bram Moolenaar | f9e3e09 | 2019-01-13 23:38:42 +0100 | [diff] [blame] | 13 | void iemsg(char *s); |
Bram Moolenaar | 95f0960 | 2016-11-10 20:01:45 +0100 | [diff] [blame] | 14 | void internal_error(char *where); |
Bram Moolenaar | dd58923 | 2020-02-29 17:38:12 +0100 | [diff] [blame] | 15 | void internal_error_no_abort(char *where); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 16 | void emsg_invreg(int name); |
Bram Moolenaar | 8a7d654 | 2020-01-26 15:56:19 +0100 | [diff] [blame] | 17 | void emsg_namelen(char *msg, char_u *name, int len); |
Bram Moolenaar | 32526b3 | 2019-01-19 17:43:09 +0100 | [diff] [blame] | 18 | char *msg_trunc_attr(char *s, int force, int attr); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 19 | char_u *msg_may_trunc(int force, char_u *s); |
| 20 | int delete_first_msg(void); |
Christian Brabandt | 51d4d84 | 2024-12-06 17:26:25 +0100 | [diff] [blame] | 21 | int messagesopt_changed(void); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 22 | void ex_messages(exarg_T *eap); |
| 23 | void msg_end_prompt(void); |
| 24 | void wait_return(int redraw); |
| 25 | void set_keep_msg(char_u *s, int attr); |
| 26 | void set_keep_msg_from_hist(void); |
| 27 | void msg_start(void); |
| 28 | void msg_starthere(void); |
| 29 | void msg_putchar(int c); |
| 30 | void msg_putchar_attr(int c, int attr); |
| 31 | void msg_outnum(long n); |
| 32 | void msg_home_replace(char_u *fname); |
| 33 | void msg_home_replace_hl(char_u *fname); |
| 34 | int msg_outtrans(char_u *str); |
| 35 | int msg_outtrans_attr(char_u *str, int attr); |
| 36 | int msg_outtrans_len(char_u *str, int len); |
| 37 | char_u *msg_outtrans_one(char_u *p, int attr); |
| 38 | int msg_outtrans_len_attr(char_u *msgstr, int len, int attr); |
| 39 | void msg_make(char_u *arg); |
Bram Moolenaar | 725310d | 2019-04-24 23:08:23 +0200 | [diff] [blame] | 40 | int msg_outtrans_special(char_u *strstart, int from, int maxlen); |
zeertzjq | cdc8393 | 2022-09-12 13:38:41 +0100 | [diff] [blame] | 41 | char_u *str2special_save(char_u *str, int replace_spaces, int replace_lt); |
| 42 | char_u *str2special(char_u **sp, int replace_spaces, int replace_lt); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 43 | void str2specialbuf(char_u *sp, char_u *buf, int len); |
| 44 | void msg_prt_line(char_u *s, int list); |
Bram Moolenaar | 32526b3 | 2019-01-19 17:43:09 +0100 | [diff] [blame] | 45 | void msg_puts(char *s); |
| 46 | void msg_puts_title(char *s); |
| 47 | void msg_outtrans_long_attr(char_u *longstr, int attr); |
Bram Moolenaar | 32526b3 | 2019-01-19 17:43:09 +0100 | [diff] [blame] | 48 | void msg_puts_attr(char *s, int attr); |
Bram Moolenaar | 7b668e8 | 2016-08-23 23:51:21 +0200 | [diff] [blame] | 49 | int message_filtered(char_u *msg); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 50 | void may_clear_sb_text(void); |
Bram Moolenaar | f2405ed | 2017-03-16 19:58:25 +0100 | [diff] [blame] | 51 | void sb_text_start_cmdline(void); |
zeertzjq | 46af7bc | 2022-07-28 12:34:09 +0100 | [diff] [blame] | 52 | void sb_text_restart_cmdline(void); |
Bram Moolenaar | f2405ed | 2017-03-16 19:58:25 +0100 | [diff] [blame] | 53 | void sb_text_end_cmdline(void); |
| 54 | void clear_sb_text(int all); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 55 | void show_sb_text(void); |
| 56 | void msg_sb_eol(void); |
| 57 | int msg_use_printf(void); |
| 58 | void mch_errmsg(char *str); |
| 59 | void mch_msg(char *str); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 60 | void repeat_message(void); |
| 61 | void msg_clr_eos(void); |
| 62 | void msg_clr_eos_force(void); |
| 63 | void msg_clr_cmdline(void); |
| 64 | int msg_end(void); |
| 65 | void msg_check(void); |
| 66 | int redirecting(void); |
| 67 | void verbose_enter(void); |
| 68 | void verbose_leave(void); |
| 69 | void verbose_enter_scroll(void); |
| 70 | void verbose_leave_scroll(void); |
| 71 | void verbose_stop(void); |
| 72 | int verbose_open(void); |
| 73 | void give_warning(char_u *message, int hl); |
Bram Moolenaar | cc7eb2a | 2021-07-11 19:12:04 +0200 | [diff] [blame] | 74 | void give_warning_with_source(char_u *message, int hl, int with_source); |
Bram Moolenaar | f8be461 | 2017-06-23 20:52:40 +0200 | [diff] [blame] | 75 | void give_warning2(char_u *message, char_u *a1, int hl); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 76 | void msg_advance(int col); |
Christian Brabandt | 45e0704 | 2024-11-11 20:52:55 +0100 | [diff] [blame] | 77 | void msg_warn_missing_clipboard(void); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 78 | int do_dialog(int type, char_u *title, char_u *message, char_u *buttons, int dfltbutton, char_u *textfield, int ex_cmd); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 79 | int vim_dialog_yesno(int type, char_u *title, char_u *message, int dflt); |
| 80 | int vim_dialog_yesnocancel(int type, char_u *title, char_u *message, int dflt); |
| 81 | int vim_dialog_yesnoallcancel(int type, char_u *title, char_u *message, int dflt); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 82 | /* vim: set ft=c : */ |