simplification of initenv file

This commit is contained in:
Mikayla Fischler 2022-05-31 16:05:05 -04:00
parent ccc5220ca8
commit 341df1a739

View File

@ -2,8 +2,9 @@
-- Initialize the Post-Boot Module Environment -- Initialize the Post-Boot Module Environment
-- --
-- initialize booted environment return {
local init_env = function () -- initialize booted environment
init_env = function ()
local _require = require("cc.require") local _require = require("cc.require")
local _env = setmetatable({}, { __index = _ENV }) local _env = setmetatable({}, { __index = _ENV })
@ -13,6 +14,5 @@ local init_env = function ()
-- reset terminal -- reset terminal
term.clear() term.clear()
term.setCursorPos(1, 1) term.setCursorPos(1, 1)
end end
}
return { init_env = init_env }