diff options
Diffstat (limited to 'core/src')
| -rw-r--r-- | core/src/xmake/tty/term_mode.c | 4 |
1 files 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) |
