mirror of
https://github.com/kepler155c/opus
synced 2025-01-15 01:45:42 +00:00
support MOTDs (#19)
This commit is contained in:
parent
6e6d4b81cd
commit
2f597d0dc4
@ -3,6 +3,7 @@ local parentShell = _ENV.shell
|
|||||||
_ENV.shell = { }
|
_ENV.shell = { }
|
||||||
|
|
||||||
local fs = _G.fs
|
local fs = _G.fs
|
||||||
|
local settings = _G.settings
|
||||||
local shell = _ENV.shell
|
local shell = _ENV.shell
|
||||||
|
|
||||||
local sandboxEnv = setmetatable({ }, { __index = _G })
|
local sandboxEnv = setmetatable({ }, { __index = _G })
|
||||||
@ -673,6 +674,10 @@ local history = History.load('usr/.shell_history', 25)
|
|||||||
term.setBackgroundColor(_colors.backgroundColor)
|
term.setBackgroundColor(_colors.backgroundColor)
|
||||||
term.clear()
|
term.clear()
|
||||||
|
|
||||||
|
if settings.get("motd.enabled") then
|
||||||
|
shell.run("motd")
|
||||||
|
end
|
||||||
|
|
||||||
while not bExit do
|
while not bExit do
|
||||||
if config.displayDirectory then
|
if config.displayDirectory then
|
||||||
term.setTextColour(_colors.directoryTextColor)
|
term.setTextColour(_colors.directoryTextColor)
|
||||||
|
Loading…
Reference in New Issue
Block a user