NeoMutt  2025-09-05-55-g97fc89
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
curs_lib.h
Go to the documentation of this file.
1
23
24#ifndef MUTT_GUI_CURS_LIB_H
25#define MUTT_GUI_CURS_LIB_H
26
27#include <stdbool.h>
28#include <stddef.h>
29#include "browser/lib.h"
30
31struct Buffer;
32struct Mailbox;
33struct MuttWindow;
34
39{
40 bool multiple;
41 struct Mailbox *mailbox;
42 char ***files;
43 int *numfiles;
44};
45
46int mutt_addwch(struct MuttWindow *win, wchar_t wc);
47int mutt_any_key_to_continue(const char *s);
48void mutt_beep(bool force);
49int mw_enter_fname(const char *prompt, struct Buffer *fname, bool mailbox, struct Mailbox *m, bool multiple, char ***files, int *numfiles, SelectFileFlags flags);
50void mutt_edit_file(const char *editor, const char *file);
51void mutt_endwin(void);
52void mutt_need_hard_redraw(void);
53void mutt_paddstr(struct MuttWindow *win, int n, const char *s);
54void mutt_query_exit(void);
55void mutt_refresh(void);
56char * mutt_str_expand_tabs(char *str, size_t *len, int tabwidth);
57size_t mutt_strwidth(const char *s);
58size_t mutt_strnwidth(const char *s, size_t len);
59size_t mutt_wstr_trunc(const char *src, size_t maxlen, size_t maxwid, size_t *width);
60void mw_what_key(void);
61
62#endif /* MUTT_GUI_CURS_LIB_H */
Select a Mailbox from a list.
uint8_t SelectFileFlags
Flags for mutt_select_file(), e.g. MUTT_SEL_MAILBOX.
Definition lib.h:56
void mutt_edit_file(const char *editor, const char *file)
Let the user edit a file.
Definition curs_lib.c:117
size_t mutt_wstr_trunc(const char *src, size_t maxlen, size_t maxwid, size_t *width)
Work out how to truncate a widechar string.
Definition curs_lib.c:385
size_t mutt_strnwidth(const char *s, size_t len)
Measure a string's width in screen cells.
Definition curs_lib.c:458
void mutt_paddstr(struct MuttWindow *win, int n, const char *s)
Display a string on screen, padded if necessary.
Definition curs_lib.c:343
void mutt_refresh(void)
Force a refresh of the screen.
Definition curs_lib.c:79
int mutt_addwch(struct MuttWindow *win, wchar_t wc)
Addwch would be provided by an up-to-date curses library.
Definition curs_lib.c:320
int mutt_any_key_to_continue(const char *s)
Prompt the user to 'press any key' and wait.
Definition curs_lib.c:174
void mutt_need_hard_redraw(void)
Force a hard refresh.
Definition curs_lib.c:101
void mutt_query_exit(void)
Ask the user if they want to leave NeoMutt.
Definition curs_lib.c:138
void mutt_endwin(void)
Shutdown curses.
Definition curs_lib.c:152
void mutt_beep(bool force)
Irritate the user.
Definition curs_lib.c:69
size_t mutt_strwidth(const char *s)
Measure a string's width in screen cells.
Definition curs_lib.c:445
char * mutt_str_expand_tabs(char *str, size_t *len, int tabwidth)
Convert tabs to spaces in a string.
Definition curs_lib.c:592
void mw_what_key(void)
Display the value of a key -.
Definition curs_lib.c:501
int mw_enter_fname(const char *prompt, struct Buffer *fname, bool mailbox, struct Mailbox *m, bool multiple, char ***files, int *numfiles, SelectFileFlags flags)
Ask the user to select a file -.
Definition curs_lib.c:237
String manipulation buffer.
Definition buffer.h:36
Input for the file completion function.
Definition curs_lib.h:39
char *** files
List of files selected.
Definition curs_lib.h:42
struct Mailbox * mailbox
Mailbox.
Definition curs_lib.h:41
bool multiple
Allow multiple selections.
Definition curs_lib.h:40
int * numfiles
Number of files selected.
Definition curs_lib.h:43
A mailbox.
Definition mailbox.h:79