Fix bug, use &loop->uv replace loop.

This commit is contained in:
George Zhao 2018-01-17 19:47:00 +08:00
parent 43833af53c
commit 23102bc18e

View File

@ -47,7 +47,7 @@ void term_input_init(TermInput *input, Loop *loop)
termkey_set_canonflags(input->tk, curflags | TERMKEY_CANON_DELBS);
// setup input handle
#ifdef WIN32
uv_tty_init(loop, &input->tty_in, 0, 1);
uv_tty_init(&loop->uv, &input->tty_in, 0, 1);
uv_tty_set_mode(&input->tty_in, UV_TTY_MODE_RAW);
rstream_init_stream(&input->read_stream, (uv_stream_t *)&input->tty_in, 0xfff);
#else