32#define GETCH_NO_FLAGS 0
33#define GETCH_IGNORE_MACRO (1 << 0)
37#define MFF_DEPRECATED (1 << 1)
52void array_add (
struct KeyEventArray *a,
int ch,
int op);
#define ARRAY_HEAD(name, type)
Define a named struct for arrays of elements of a certain type.
struct KeyEventArray MacroEvents
These are used for macros and exec/push commands.
struct KeyEventArray UngetKeyEvents
These are used in all other "normal" situations, and are not ignored when passing GETCH_IGNORE_MACRO.
struct KeyEvent mutt_getch(GetChFlags flags)
Read a character from the input buffer.
uint8_t GetChFlags
Flags for mutt_getch(), e.g. GETCH_NO_FLAGS.
void generic_tokenize_push_string(char *s)
Parse and queue a 'push' command.
void mutt_flushinp(void)
Empty all the keyboard buffers.
void array_add(struct KeyEventArray *a, int ch, int op)
Add an event to the end of the array.
void array_to_endcond(struct KeyEventArray *a)
Clear the array until an OP_END_COND.
void mutt_unget_string(const char *s)
Return a string to the input buffer.
void mutt_push_macro_event(int ch, int op)
Add the character/operation to the macro buffer.
void mutt_unget_op(int op)
Return an operation to the input buffer.
void mutt_flush_macro_to_endcond(void)
Drop a macro from the input buffer.
uint8_t MenuFuncFlags
Flags, e.g. MFF_DEPRECATED.
struct KeyEvent * array_pop(struct KeyEventArray *a)
Remove an event from the array.
void mutt_unget_ch(int ch)
Return a keystroke to the input buffer.
Convenience wrapper for the library headers.
An event such as a keypress.
int op
Function opcode, e.g. OP_HELP.