File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments