NeoMutt
2025-12-11-924-g64e75a
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
34
enum
EnterRedrawFlags
35
{
36
ENTER_REDRAW_NONE
= 0,
37
ENTER_REDRAW_INIT
,
38
ENTER_REDRAW_LINE
,
39
};
40
44
enum
CompletionFlag
45
{
46
MUTT_COMP_NONE
= 0,
47
MUTT_COMP_CLEAR
= 1U << 0,
48
MUTT_COMP_PASS
= 1U << 1,
49
MUTT_COMP_UNBUFFERED
= 1U << 2,
50
};
51
typedef
uint8_t
CompletionFlags
;
52
56
struct
EnterWindowData
57
{
58
// Function parameters
59
struct
Buffer
*
buffer
;
60
CompletionFlags
flags
;
61
struct
EnterState
*
state
;
62
enum
HistoryClass
hclass
;
63
const
struct
CompleteOps
*
comp_api
;
64
void
*
cdata
;
65
66
// Local variables
67
const
char
*
prompt
;
68
enum
EnterRedrawFlags
redraw
;
69
bool
pass
;
70
bool
first
;
71
wchar_t
*
tempbuf
;
72
size_t
templen
;
73
mbstate_t *
mbstate
;
74
int
tabs
;
75
76
bool
done
;
77
78
struct
CompletionData
*
cd
;
79
80
int
row
;
81
int
col
;
82
};
83
84
#endif
/* MUTT_EDITOR_WDATA_H */
CompletionFlags
uint8_t CompletionFlags
Definition
wdata.h:51
CompletionFlag
CompletionFlag
Flags for mw_get_field(), e.g.
Definition
wdata.h:45
MUTT_COMP_UNBUFFERED
@ MUTT_COMP_UNBUFFERED
Ignore macro buffer.
Definition
wdata.h:49
MUTT_COMP_PASS
@ MUTT_COMP_PASS
Password mode (no echo)
Definition
wdata.h:48
MUTT_COMP_CLEAR
@ MUTT_COMP_CLEAR
Clear input if printable character is pressed.
Definition
wdata.h:47
MUTT_COMP_NONE
@ MUTT_COMP_NONE
No flags are set.
Definition
wdata.h:46
EnterRedrawFlags
EnterRedrawFlags
Redraw flags for mw_get_field()
Definition
wdata.h:35
ENTER_REDRAW_NONE
@ ENTER_REDRAW_NONE
Nothing to redraw.
Definition
wdata.h:36
ENTER_REDRAW_LINE
@ ENTER_REDRAW_LINE
Redraw entire line.
Definition
wdata.h:38
ENTER_REDRAW_INIT
@ ENTER_REDRAW_INIT
Go to end of line and redraw.
Definition
wdata.h:37
lib.h
Read/write command history from/to a file.
HistoryClass
HistoryClass
Type to differentiate different histories.
Definition
lib.h:55
Buffer
String manipulation buffer.
Definition
buffer.h:36
CompleteOps
Definition
compapi.h:36
CompletionData
State data for auto-completion.
Definition
data.h:32
EnterState
Keep our place when entering a string.
Definition
state.h:32
EnterWindowData
Data to fill the Enter Window.
Definition
wdata.h:57
EnterWindowData::pass
bool pass
Password mode, conceal characters.
Definition
wdata.h:69
EnterWindowData::tabs
int tabs
Number of times the user has hit tab.
Definition
wdata.h:74
EnterWindowData::cdata
void * cdata
Auto-Completion private data.
Definition
wdata.h:64
EnterWindowData::flags
CompletionFlags flags
Flags, see CompletionFlags.
Definition
wdata.h:60
EnterWindowData::row
int row
Cursor row.
Definition
wdata.h:80
EnterWindowData::cd
struct CompletionData * cd
Auto-completion state data.
Definition
wdata.h:78
EnterWindowData::buffer
struct Buffer * buffer
struct Buffer for the result
Definition
wdata.h:59
EnterWindowData::done
bool done
Is text-entry done?
Definition
wdata.h:76
EnterWindowData::first
bool first
First time through, no input yet.
Definition
wdata.h:70
EnterWindowData::col
int col
Cursor column.
Definition
wdata.h:81
EnterWindowData::tempbuf
wchar_t * tempbuf
Buffer used by completion.
Definition
wdata.h:71
EnterWindowData::comp_api
const struct CompleteOps * comp_api
Auto-Completion API.
Definition
wdata.h:63
EnterWindowData::prompt
const char * prompt
Prompt.
Definition
wdata.h:67
EnterWindowData::state
struct EnterState * state
Current state of text entry.
Definition
wdata.h:61
EnterWindowData::redraw
enum EnterRedrawFlags redraw
What needs redrawing? See EnterRedrawFlags.
Definition
wdata.h:68
EnterWindowData::mbstate
mbstate_t * mbstate
Multi-byte state.
Definition
wdata.h:73
EnterWindowData::hclass
enum HistoryClass hclass
History to use, e.g. HC_NEO_COMMAND.
Definition
wdata.h:62
EnterWindowData::templen
size_t templen
Length of complete buffer.
Definition
wdata.h:72