diff options
author | pgen <p.gen.progs@gmail.com> | 2015-10-18 00:34:38 +0200 |
---|---|---|
committer | pgen <p.gen.progs@gmail.com> | 2015-10-18 00:34:38 +0200 |
commit | a93a65d3e70c22fd9f96ba458e5a97436c1f17ab (patch) | |
tree | 09632e48bc9f7a1199a1daf7637c55376051be10 /smenu.h | |
parent | 5175d9f23e1d0fd87b7ece8e7f812d36be57d388 (diff) |
Rework the message display (-m) code and make it multilines capable
Diffstat (limited to 'smenu.h')
-rw-r--r-- | smenu.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -84,7 +84,10 @@ int build_metadata(word_t * word_a, term_t * term, int count, win_t * win); int disp_lines(word_t * word_a, win_t * win, toggle_t * toggle, int current, int count, int search_mode, char *search_buf, term_t * term, int last_line, char *tmp_max_word, langinfo_t * langinfo); -int disp_message(char *message, term_t * term, win_t * win); +void get_message_lines(char *message, ll_t * message_lines_list, + int *message_max_width, int *message_max_len); +int disp_message(ll_t * message_lines_list, int width, int max_len, + term_t * term, win_t * win); void disp_word(word_t * word_a, int pos, int search_mode, char *buffer, term_t * term, win_t * win, char *tmp_max_word); int egetopt(int nargc, char **nargv, char *ostr); |