aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/tui/input.h
diff options
context:
space:
mode:
authorRui Abreu Ferreira <raf-ep@gmx.com>2017-03-18 00:06:47 +0000
committerJustin M. Keyes <justinkz@gmail.com>2017-05-03 12:48:24 +0200
commit685ca180f7c96f77a79c78d3b26bd003f8cd834c (patch)
treec8f74f7e9ca99ee323c7b25d3f4fc144962a7ac2 /src/nvim/tui/input.h
parent31e5053253e1b341b341e772fa7f2e24d75488d3 (diff)
downloadrneovim-685ca180f7c96f77a79c78d3b26bd003f8cd834c.tar.gz
rneovim-685ca180f7c96f77a79c78d3b26bd003f8cd834c.tar.bz2
rneovim-685ca180f7c96f77a79c78d3b26bd003f8cd834c.zip
win: Terminal UI #6315
For CI builds unibilium is provided through msys2 packages, and libtermkey is built from source in third-party from equalsraf/libtermkey. In Windows we cannot read terminal input from the stdin file descriptor, instead use libuv's uv_tty API. It should handle key input and encoding. The UI suspend is not implemented for Windows, because the SIGSTP/SIGCONT do not exist in windows. Currently this is a NOOP. Closes #3902 Closes #6640
Diffstat (limited to 'src/nvim/tui/input.h')
-rw-r--r--src/nvim/tui/input.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/tui/input.h b/src/nvim/tui/input.h
index 7d59cf5c6a..573cc9d683 100644
--- a/src/nvim/tui/input.h
+++ b/src/nvim/tui/input.h
@@ -17,6 +17,9 @@ typedef struct term_input {
#endif
TimeWatcher timer_handle;
Loop *loop;
+#ifdef WIN32
+ uv_tty_t tty_in;
+#endif
Stream read_stream;
RBuffer *key_buffer;
uv_mutex_t key_buffer_mutex;