1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-10 13:27:43 +00:00

better startup

This commit is contained in:
kepler155c@gmail.com
2017-09-25 23:18:36 -04:00
parent 80f3ba1fb0
commit 1a818e9e3a
3 changed files with 14 additions and 6 deletions

View File

@@ -3,7 +3,11 @@
local w, h = term.getSize()
local str = 'Opus OS'
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.clear()
term.write(str)