getchar.h
Go to the documentation of this file.
1 #ifndef NVIM_GETCHAR_H
2 #define NVIM_GETCHAR_H
3 
4 #include "nvim/os/fileio.h"
5 #include "nvim/types.h"
6 #include "nvim/buffer_defs.h"
7 #include "nvim/ex_cmds_defs.h"
8 
12 enum {
13  REMAP_YES = 0,
14  REMAP_NONE = -1,
15  REMAP_SCRIPT = -2,
16  REMAP_SKIP = -3,
17 } RemapValues;
18 
19 // Argument for flush_buffers().
20 typedef enum {
22  FLUSH_TYPEAHEAD, // flush current typebuf contents
23  FLUSH_INPUT // flush typebuf and inchar() input
25 
26 #define KEYLEN_PART_KEY -1 /* keylen value for incomplete key-code */
27 #define KEYLEN_PART_MAP -2 /* keylen value for incomplete mapping */
28 #define KEYLEN_REMOVED 9999 /* keylen value for removed sequence */
29 
31 enum { NSCRIPT = 15 };
32 
35 
36 #ifdef INCLUDE_GENERATED_DECLARATIONS
37 # include "getchar.h.generated.h"
38 #endif
39 #endif // NVIM_GETCHAR_H
Structure used to read from/write to file.
Definition: fileio.h:11
enum @24 RemapValues
No remapping.
Definition: getchar.h:14
Remap script-local mappings only.
Definition: getchar.h:15
Allow remapping.
Definition: getchar.h:13
Definition: getchar.h:31
Definition: getchar.h:22
FileDescriptor * scriptin[NSCRIPT]
Streams to read script from.
Definition: getchar.c:57
No remapping for first char.
Definition: getchar.h:16
Definition: getchar.h:21
Definition: getchar.h:23
flush_buffers_T
Definition: getchar.h:20