19 lines
504 B
Lua
19 lines
504 B
Lua
local shellcfg = import("/halyde/config/shell.cfg")
|
|
import("termlib")
|
|
local event = import("event")
|
|
|
|
_G.shell = {}
|
|
_G.shell.workingDirectory = "/"
|
|
|
|
print(shellcfg["startupMessage"])
|
|
while true do
|
|
coroutine.yield()
|
|
-- print(shell.workingDirectory .. " >")
|
|
print(shellcfg["prompt"]:format(shell.workingDirectory),false)
|
|
-- termlib.cursorPosX = #(shell.workingDirectory .. " > ")
|
|
-- termlib.cursorPosY = termlib.cursorPosY - 1
|
|
read()
|
|
termlib.cursorPosX = 1
|
|
print("no shell parser yet")
|
|
end
|