cc-mek-scada/initenv.lua

11 lines
311 B
Lua
Raw Normal View History

2022-05-31 20:05:05 +00:00
return {
-- initialize booted environment
init_env = function ()
local _require, _env = require("cc.require"), setmetatable({}, { __index = _ENV })
-- overwrite require/package globals
require, package = _require.make(_env, "/")
-- reset terminal
term.clear(); term.setCursorPos(1, 1)
end
2022-05-31 20:05:05 +00:00
}