diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-12-12 06:50:39 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-12-23 18:28:54 +0100 |
commit | af2e629be4d20dda334a7c6ca817f5599956e4ff (patch) | |
tree | f6c67f44df2ef665472f773c199ec6f30d5e50c9 /src/nvim/os/input.c | |
parent | f1bfd055a7f461fd6c3770b28d08b922838ee6b0 (diff) | |
download | rneovim-af2e629be4d20dda334a7c6ca817f5599956e4ff.tar.gz rneovim-af2e629be4d20dda334a7c6ca817f5599956e4ff.tar.bz2 rneovim-af2e629be4d20dda334a7c6ca817f5599956e4ff.zip |
tui: check stty/termios for kbs
Requires libtermkey 0.19+
Closes #2048
Closes #5693
See https://github.com/neovim/libtermkey/compare/a9b61424aae9f7548162ff112393c5f706cf54f1%5E...c0eb4e4a05f49ad8fee0195c77f2c29d09cc36af
See https://bugzilla.redhat.com/show_bug.cgi?id=142659
See https://github.com/tmux/tmux/blob/fe4e9470bb504357d073320f5d305b22663ee3fd/tty-keys.c#L625-L632
Diffstat (limited to 'src/nvim/os/input.c')
-rw-r--r-- | src/nvim/os/input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/os/input.c b/src/nvim/os/input.c index 1307ab5e5a..b60a7eed36 100644 --- a/src/nvim/os/input.c +++ b/src/nvim/os/input.c @@ -39,8 +39,6 @@ static int events_enabled = 0; #ifdef INCLUDE_GENERATED_DECLARATIONS # include "os/input.c.generated.h" #endif -// Helper function used to push bytes from the 'event' key sequence partially -// between calls to os_inchar when maxlen < 3 void input_init(void) { @@ -389,6 +387,8 @@ static void process_interrupts(void) } } +// Helper function used to push bytes from the 'event' key sequence partially +// between calls to os_inchar when maxlen < 3 static int push_event_key(uint8_t *buf, int maxlen) { static const uint8_t key[3] = { K_SPECIAL, KS_EXTRA, KE_EVENT }; |