summaryrefslogtreecommitdiff
path: root/core/src/xmake/engine.c
diff options
context:
space:
mode:
authorruki <[email protected]>2025-12-15 23:24:55 +0800
committerruki <[email protected]>2025-12-15 23:24:55 +0800
commitb9116ea123e77faec8a4a0cfbfcbb38f2ebc2e66 (patch)
treebc8976c77263b6941f181fef460dad43dc2f5ee6 /core/src/xmake/engine.c
parentfb06feeb88ecd2512a4a737d7e543b88892ad783 (diff)
add tty.session_id
Diffstat (limited to 'core/src/xmake/engine.c')
-rw-r--r--core/src/xmake/engine.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/xmake/engine.c b/core/src/xmake/engine.c
index 530071a68..ea9dc2af1 100644
--- a/core/src/xmake/engine.c
+++ b/core/src/xmake/engine.c
@@ -330,6 +330,7 @@ tb_int_t xm_libc_setbyte(lua_State *lua);
// the tty functions
tb_int_t xm_tty_term_mode(lua_State *lua);
+tb_int_t xm_tty_session_id(lua_State *lua);
// the package functions
tb_int_t xm_package_loadxmi(lua_State *lua);
@@ -649,6 +650,7 @@ static luaL_Reg const g_libc_functions[] = {
// the tty functions
static luaL_Reg const g_tty_functions[] = {
{ "term_mode", xm_tty_term_mode },
+ { "session_id", xm_tty_session_id },
{ tb_null, tb_null },
};