From 06a82b1a794b0481a91db073754f188d54b0d87f Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 18 Dec 2021 23:43:19 +0800 Subject: Update term_mode.c --- core/src/xmake/tty/term_mode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/xmake/tty/term_mode.c b/core/src/xmake/tty/term_mode.c index 66a3887ea..e035236a5 100644 --- a/core/src/xmake/tty/term_mode.c +++ b/core/src/xmake/tty/term_mode.c @@ -45,11 +45,11 @@ tb_int_t xm_tty_term_mode(lua_State* lua) // check tb_assert_and_check_return_val(lua, 0); +#ifdef TB_CONFIG_OS_WINDOWS + // get std type, (stdin: 1, stdout: 2, stderr: 3) tb_int_t stdtype = (tb_int_t)luaL_checkinteger(lua, 1); - // get terminal mode -#ifdef TB_CONFIG_OS_WINDOWS DWORD mode = 0; HANDLE console_handle; switch (stdtype) -- cgit v1.3.1