mirror of
https://github.com/neovim/neovim.git
synced 2026-08-23 15:41:47 +00:00
31 lines
665 B
C
31 lines
665 B
C
#ifndef NVIM_TUI_INPUT_H
|
|
#define NVIM_TUI_INPUT_H
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <termkey.h>
|
|
#include "nvim/event/stream.h"
|
|
#include "nvim/event/time.h"
|
|
|
|
typedef struct term_input {
|
|
int in_fd;
|
|
bool paste_enabled;
|
|
bool waiting;
|
|
TermKey *tk;
|
|
#if TERMKEY_VERSION_MAJOR > 0 || TERMKEY_VERSION_MINOR > 18
|
|
TermKey_Terminfo_Getstr_Hook *tk_ti_hook_fn; ///< libtermkey terminfo hook
|
|
#endif
|
|
TimeWatcher timer_handle;
|
|
Loop *loop;
|
|
Stream read_stream;
|
|
RBuffer *key_buffer;
|
|
uv_mutex_t key_buffer_mutex;
|
|
uv_cond_t key_buffer_cond;
|
|
} TermInput;
|
|
|
|
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
|
# include "tui/input.h.generated.h"
|
|
#endif
|
|
|
|
#endif // NVIM_TUI_INPUT_H
|