cc-mek-scada/initenv.lua

19 lines
420 B
Lua
Raw Normal View History

--
2022-05-14 17:34:51 +00:00
-- Initialize the Post-Boot Module Environment
--
2022-05-31 20:05:05 +00:00
return {
-- initialize booted environment
init_env = function ()
local _require = require("cc.require")
local _env = setmetatable({}, { __index = _ENV })
2022-05-31 20:05:05 +00:00
-- overwrite require/package globals
require, package = _require.make(_env, "/")
2022-05-31 20:05:05 +00:00
-- reset terminal
term.clear()
term.setCursorPos(1, 1)
end
}