mirror of
https://github.com/kepler155c/opus
synced 2025-03-01 07:10:19 +00:00
better startup
This commit is contained in:
parent
80f3ba1fb0
commit
1a818e9e3a
@ -13,12 +13,16 @@ local function runDir(directory, desc, open)
|
|||||||
os.sleep(0)
|
os.sleep(0)
|
||||||
local result, err = open(directory .. '/' .. file)
|
local result, err = open(directory .. '/' .. file)
|
||||||
if result then
|
if result then
|
||||||
term.setTextColor(colors.green)
|
if term.isColor() then
|
||||||
|
term.setTextColor(colors.green)
|
||||||
|
end
|
||||||
term.write('[PASS] ')
|
term.write('[PASS] ')
|
||||||
term.setTextColor(colors.white)
|
term.setTextColor(colors.white)
|
||||||
term.write(fs.combine(directory, file))
|
term.write(fs.combine(directory, file))
|
||||||
else
|
else
|
||||||
term.setTextColor(colors.red)
|
if term.isColor() then
|
||||||
|
term.setTextColor(colors.red)
|
||||||
|
end
|
||||||
term.write('[FAIL] ')
|
term.write('[FAIL] ')
|
||||||
term.setTextColor(colors.white)
|
term.setTextColor(colors.white)
|
||||||
term.write(fs.combine(directory, file))
|
term.write(fs.combine(directory, file))
|
||||||
|
@ -3,7 +3,11 @@
|
|||||||
local w, h = term.getSize()
|
local w, h = term.getSize()
|
||||||
local str = 'Opus OS'
|
local str = 'Opus OS'
|
||||||
term.setTextColor(colors.white)
|
term.setTextColor(colors.white)
|
||||||
term.setBackgroundColor(colors.cyan)
|
if term.isColor() then
|
||||||
|
term.setBackgroundColor(colors.cyan)
|
||||||
|
else
|
||||||
|
term.setBackgroundColor(colors.lightGray)
|
||||||
|
end
|
||||||
term.setCursorPos((w - #str) / 2, h / 2)
|
term.setCursorPos((w - #str) / 2, h / 2)
|
||||||
term.clear()
|
term.clear()
|
||||||
term.write(str)
|
term.write(str)
|
||||||
|
@ -91,9 +91,9 @@
|
|||||||
c47ae15370cfe1ed2781eedc1dc2547d12d9e972 = {
|
c47ae15370cfe1ed2781eedc1dc2547d12d9e972 = {
|
||||||
title = "Help",
|
title = "Help",
|
||||||
category = "Apps",
|
category = "Apps",
|
||||||
icon = " \031d?\031 \
|
icon = " \031f?\031 \
|
||||||
\031d?\031 \
|
\031f?\031 \
|
||||||
\031d?",
|
\031f?",
|
||||||
run = "Help.lua",
|
run = "Help.lua",
|
||||||
},
|
},
|
||||||
b0832074630eb731d7fbe8074de48a90cd9bb220 = {
|
b0832074630eb731d7fbe8074de48a90cd9bb220 = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user