v0.4.1 - Added something in the likes of an io.read() function in OpenOS. Cursor will be added next update. Shell parser will be added in 0.5.0.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
local loadfile = ...
|
||||
local filesystem = loadfile("/halyde/lib/filesystem.lua")(loadfile)
|
||||
|
||||
_G._OSVERSION = "Halyde 0.4.0"
|
||||
_G._OSVERSION = "Halyde 0.4.1"
|
||||
|
||||
function _G.import(module, ...)
|
||||
local args = table.pack(...)
|
||||
|
||||
@@ -2,7 +2,7 @@ _G.evmgr = {}
|
||||
_G.evmgr.eventQueue = {}
|
||||
local maxEventQueueLength = 10 -- increase if events start getting dropped
|
||||
|
||||
local ocelot = component.proxy(component.list("ocelot")())
|
||||
--local ocelot = component.proxy(component.list("ocelot")())
|
||||
|
||||
while true do
|
||||
local args
|
||||
|
||||
@@ -1,11 +1,16 @@
|
||||
import("termlib")
|
||||
local event = import("event")
|
||||
|
||||
--local ocelot = component.proxy(component.list("ocelot")())
|
||||
_G.shell = {}
|
||||
_G.shell.workingDirectory = "/"
|
||||
|
||||
print("\n │\n │ ".._OSVERSION..'\n │ Welcome! Type "help" to get started.\n │')
|
||||
print("\n │\n │ ".._OSVERSION..'\n │ Welcome! Type "help" to get started.\n │\n ')
|
||||
while true do
|
||||
coroutine.yield()
|
||||
print(shell.workingDirectory .. " >")
|
||||
termlib.nextPosX = #(shell.workingDirectory .. " > ")
|
||||
termlib.nextPosY = termlib.nextPosY - 1
|
||||
read()
|
||||
--ocelot.log(tostring(args[1]))
|
||||
termlib.nextPosX = 1
|
||||
print("no shell parser yet")
|
||||
end
|
||||
Reference in New Issue
Block a user