summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorruki <[email protected]>2021-12-18 23:43:19 +0800
committerGitHub <[email protected]>2021-12-18 23:43:19 +0800
commit06a82b1a794b0481a91db073754f188d54b0d87f (patch)
treee5d8082a75decaec398d9e88a2fd6722a9fa78dc /core/src
parent0c9e6e48e08bbfdfb029aeb1a8228a32fa047762 (diff)
Update term_mode.c
Diffstat (limited to 'core/src')
-rw-r--r--core/src/xmake/tty/term_mode.c4
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)