Skip to content

Commit 126e153

Browse files
authored
miniOS kernel 0.6.1.1
1 parent f2e872d commit 126e153

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

miniOS/minios.lua

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
_G._OSNAME = "miniOS"
2-
_G._OSVER = "0.6.1"
2+
_G._OSVER = "0.6.1.1"
33
_G._OSVERSION = _OSNAME .. " " .. _OSVER
44

55
--component code
@@ -616,6 +616,13 @@ function fs_code()
616616
return nil
617617
end
618618
end
619+
function fs.get(path)
620+
local drive
621+
drive, path = fs.drive.drivepathSplit(path)
622+
drive = fs.drive.letterToProxy(drive)
623+
if not drive then return nil, "no such file system"
624+
else return drive, path end
625+
end
619626

620627
--handle inserted and removed filesystems
621628
local function onComponentAdded(_, address, componentType)
@@ -645,6 +652,8 @@ function terminal_code()
645652
local cursorX, cursorY = 1, 1
646653
local cursorBlink = nil
647654

655+
term.gpu = function() return component.gpu end
656+
648657
local function toggleBlink()
649658
if term.isAvailable() then
650659
cursorBlink.state = not cursorBlink.state
@@ -1201,7 +1210,7 @@ function miniOS.saferunfile(...)
12011210
printErr(r[2])
12021211
local c = component.gpu.getForeground()
12031212
component.gpu.setForeground(0xFF0000)
1204-
printPaged(debug.traceback())
1213+
printPaged(r[3])
12051214
component.gpu.setForeground(c)
12061215
end
12071216
return r

0 commit comments

Comments
 (0)