diff options
author | erw7 <erw7.github@gmail.com> | 2017-03-28 18:07:58 +0900 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-08-16 09:13:43 +0200 |
commit | 4b1f21de75f9981007d80aca8355239e8615d6bd (patch) | |
tree | b0322a5b61eacbd6207603b346fca2f7d957458a /src/nvim/os/pty_process_win.h | |
parent | a79785675564a4c1f02f9aa54249fc6000187c0d (diff) | |
download | rneovim-4b1f21de75f9981007d80aca8355239e8615d6bd.tar.gz rneovim-4b1f21de75f9981007d80aca8355239e8615d6bd.tar.bz2 rneovim-4b1f21de75f9981007d80aca8355239e8615d6bd.zip |
win: support :terminal
Diffstat (limited to 'src/nvim/os/pty_process_win.h')
-rw-r--r-- | src/nvim/os/pty_process_win.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/nvim/os/pty_process_win.h b/src/nvim/os/pty_process_win.h index 87b2b6545d..806857f130 100644 --- a/src/nvim/os/pty_process_win.h +++ b/src/nvim/os/pty_process_win.h @@ -5,19 +5,24 @@ #include <winpty.h> -#include "nvim/event/libuv_process.h" +#include "nvim/event/process.h" +#include "nvim/lib/queue.h" typedef struct pty_process { Process process; char *term_name; uint16_t width, height; winpty_t *wp; - uv_async_t finish_async; HANDLE finish_wait; HANDLE process_handle; - bool is_closing; + uv_timer_t wait_eof_timer; } PtyProcess; +typedef struct arg_S { + char *arg; + QUEUE node; +} arg_T; + static inline PtyProcess pty_process_init(Loop *loop, void *data) { PtyProcess rv; @@ -26,10 +31,8 @@ static inline PtyProcess pty_process_init(Loop *loop, void *data) rv.width = 80; rv.height = 24; rv.wp = NULL; - // XXX: Zero rv.finish_async somehow? rv.finish_wait = NULL; rv.process_handle = NULL; - rv.is_closing = false; return rv; } |