NeoMutt  2025-12-11-769-g906513
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
wdata.h
Go to the documentation of this file.
1
22
23#ifndef MUTT_EDITOR_WDATA_H
24#define MUTT_EDITOR_WDATA_H
25
26#include <stdbool.h>
27#include <stdint.h>
28#include <wchar.h>
29#include "history/lib.h"
30
40
41typedef uint8_t CompletionFlags;
42#define MUTT_COMP_NO_FLAGS 0
43#define MUTT_COMP_CLEAR (1 << 0)
44#define MUTT_COMP_PASS (1 << 1)
45#define MUTT_COMP_UNBUFFERED (1 << 2)
46
51{
52 // Function parameters
53 struct Buffer *buffer;
55 struct EnterState *state;
57 const struct CompleteOps *comp_api;
58 void *cdata;
59
60 // Local variables
61 const char *prompt;
63 bool pass;
64 bool first;
65 wchar_t *tempbuf;
66 size_t templen;
67 mbstate_t *mbstate;
68 int tabs;
69
70 bool done;
71
73
74 int row;
75 int col;
76};
77
78#endif /* MUTT_EDITOR_WDATA_H */
uint8_t CompletionFlags
Flags for mw_get_field(), e.g. MUTT_COMP_NO_FLAGS.
Definition wdata.h:41
EnterRedrawFlags
Redraw flags for mw_get_field()
Definition wdata.h:35
@ ENTER_REDRAW_NONE
Nothing to redraw.
Definition wdata.h:36
@ ENTER_REDRAW_LINE
Redraw entire line.
Definition wdata.h:38
@ ENTER_REDRAW_INIT
Go to end of line and redraw.
Definition wdata.h:37
Read/write command history from/to a file.
HistoryClass
Type to differentiate different histories.
Definition lib.h:54
String manipulation buffer.
Definition buffer.h:36
State data for auto-completion.
Definition data.h:32
Keep our place when entering a string.
Definition state.h:32
Data to fill the Enter Window.
Definition wdata.h:51
bool pass
Password mode, conceal characters.
Definition wdata.h:63
int tabs
Number of times the user has hit tab.
Definition wdata.h:68
void * cdata
Auto-Completion private data.
Definition wdata.h:58
CompletionFlags flags
Flags, see CompletionFlags.
Definition wdata.h:54
int row
Cursor row.
Definition wdata.h:74
struct CompletionData * cd
Auto-completion state data.
Definition wdata.h:72
struct Buffer * buffer
struct Buffer for the result
Definition wdata.h:53
bool done
Is text-entry done?
Definition wdata.h:70
bool first
First time through, no input yet.
Definition wdata.h:64
int col
Cursor column.
Definition wdata.h:75
wchar_t * tempbuf
Buffer used by completion.
Definition wdata.h:65
const struct CompleteOps * comp_api
Auto-Completion API.
Definition wdata.h:57
const char * prompt
Prompt.
Definition wdata.h:61
struct EnterState * state
Current state of text entry.
Definition wdata.h:55
enum EnterRedrawFlags redraw
What needs redrawing? See EnterRedrawFlags.
Definition wdata.h:62
mbstate_t * mbstate
Multi-byte state.
Definition wdata.h:67
enum HistoryClass hclass
History to use, e.g. HC_NEO_COMMAND.
Definition wdata.h:56
size_t templen
Length of complete buffer.
Definition wdata.h:66