aboutsummaryrefslogtreecommitdiff
path: root/src/core.c
diff options
context:
space:
mode:
authorThijs <thijs@thijsschreijer.nl>2023-11-12 23:53:26 +0100
committerThijs Schreijer <thijs@thijsschreijer.nl>2023-11-15 19:17:57 +0100
commit5f3951a942fdc4bf489d8d590bfc891ac9548a23 (patch)
tree8d0b7d2e10b45f022d8562cd974a3b7537d1dd7c /src/core.c
parentd45768de3e6f7b28bfecf4d19b192ccac9ce5dc2 (diff)
downloadluasystem-5f3951a942fdc4bf489d8d590bfc891ac9548a23.tar.gz
luasystem-5f3951a942fdc4bf489d8d590bfc891ac9548a23.tar.bz2
luasystem-5f3951a942fdc4bf489d8d590bfc891ac9548a23.zip
feat(tty): add isatty()
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core.c b/src/core.c
index fffedd1..87fd105 100644
--- a/src/core.c
+++ b/src/core.c
@@ -15,6 +15,7 @@
15void time_open(lua_State *L); 15void time_open(lua_State *L);
16void environment_open(lua_State *L); 16void environment_open(lua_State *L);
17void random_open(lua_State *L); 17void random_open(lua_State *L);
18void term_open(lua_State *L);
18 19
19/*------------------------------------------------------------------------- 20/*-------------------------------------------------------------------------
20 * Initializes all library modules. 21 * Initializes all library modules.
@@ -33,6 +34,7 @@ LUAEXPORT int luaopen_system_core(lua_State *L) {
33 lua_rawset(L, -3); 34 lua_rawset(L, -3);
34 time_open(L); 35 time_open(L);
35 random_open(L); 36 random_open(L);
37 term_open(L);
36 environment_open(L); 38 environment_open(L);
37 return 1; 39 return 1;
38} 40}