Update sPhone.lua

This commit is contained in:
Ale32bit 2016-12-29 19:34:26 +01:00 committed by GitHub
parent 29c1e9d626
commit 0a09a777ba

View file

@ -1,6 +1,6 @@
local function kernel(...) local function kernel(...)
_G.sPhone = { _G.sPhone = {
version = "Beta 1.1", version = "Beta 1.2",
user = "Guest", user = "Guest",
devMode = false, devMode = false,
mainTerm = term.current(), mainTerm = term.current(),
@ -278,11 +278,11 @@ local function kernel(...)
if str then if str then
term.setCursorPos(2, 1 + i - scroll) term.setCursorPos(2, 1 + i - scroll)
local isDir local isDir
if not pairs then if not opt.pairs then
isDir = fs.isDir(fs.combine(path, str)) isDir = fs.isDir(fs.combine(path, str))
else else
isDir = false isDir = false
end end
term.setTextColor(isDir and opt.fg1b or opt.fg1) term.setTextColor(isDir and opt.fg1b or opt.fg1)
local _w = w - (isDir and 2 or 1) local _w = w - (isDir and 2 or 1)
if #str > _w then if #str > _w then