mirror of
https://github.com/MikaylaFischler/cc-mek-scada.git
synced 2024-08-30 18:22:34 +00:00
19 lines
420 B
Lua
19 lines
420 B
Lua
--
|
|
-- Initialize the Post-Boot Module Environment
|
|
--
|
|
|
|
return {
|
|
-- initialize booted environment
|
|
init_env = function ()
|
|
local _require = require("cc.require")
|
|
local _env = setmetatable({}, { __index = _ENV })
|
|
|
|
-- overwrite require/package globals
|
|
require, package = _require.make(_env, "/")
|
|
|
|
-- reset terminal
|
|
term.clear()
|
|
term.setCursorPos(1, 1)
|
|
end
|
|
}
|