input.h
Go to the documentation of this file.
1 #ifndef NVIM_TUI_INPUT_H
2 #define NVIM_TUI_INPUT_H
3 
4 #include <stdbool.h>
5 
6 #include <termkey.h>
7 #include "nvim/event/stream.h"
8 #include "nvim/event/time.h"
9 
10 typedef struct term_input {
11  int in_fd;
13  bool waiting;
14  TermKey *tk;
15 #if TERMKEY_VERSION_MAJOR > 0 || TERMKEY_VERSION_MINOR > 18
16  TermKey_Terminfo_Getstr_Hook *tk_ti_hook_fn;
17 #endif
22  uv_mutex_t key_buffer_mutex;
23  uv_cond_t key_buffer_cond;
24 } TermInput;
25 
26 #ifdef INCLUDE_GENERATED_DECLARATIONS
27 # include "tui/input.h.generated.h"
28 #endif
29 
30 #endif // NVIM_TUI_INPUT_H
bool paste_enabled
Definition: input.h:12
TimeWatcher timer_handle
Definition: input.h:18
Loop * loop
Definition: input.h:19
RBuffer * key_buffer
Definition: input.h:21
Definition: rbuffer.h:77
struct term_input TermInput
TermKey * tk
Definition: input.h:14
Definition: input.h:10
uv_mutex_t key_buffer_mutex
Definition: input.h:22
Definition: time.h:11
bool waiting
Definition: input.h:13
Definition: stream.h:32
Definition: loop.h:17
uv_cond_t key_buffer_cond
Definition: input.h:23
int in_fd
Definition: input.h:11
Stream read_stream
Definition: input.h:20