Update info.lua
This commit is contained in:
parent
d7e980ce7f
commit
01063d2550
1 changed files with 3 additions and 18 deletions
|
@ -4,26 +4,11 @@ local function clear()
|
||||||
term.clear()
|
term.clear()
|
||||||
term.setCursorPos(1,1)
|
term.setCursorPos(1,1)
|
||||||
end
|
end
|
||||||
|
clear()
|
||||||
local function header()
|
sPhone.header("Info", "X")
|
||||||
clear()
|
|
||||||
local w, h = term.getSize()
|
|
||||||
paintutils.drawLine(1,1,w,1, colors.blue)
|
|
||||||
term.setTextColor(colors.white)
|
|
||||||
term.setCursorPos(1,1)
|
|
||||||
write(" "..sPhone.user)
|
|
||||||
term.setCursorPos(w,1)
|
|
||||||
write("X")
|
|
||||||
term.setCursorPos(1,2)
|
|
||||||
term.setBackgroundColor(colors.white)
|
|
||||||
term.setTextColor(colors.black)
|
|
||||||
end
|
|
||||||
header()
|
|
||||||
|
|
||||||
term.setCursorPos(1,3)
|
|
||||||
visum.align("center", " Info",false,3)
|
|
||||||
print("")
|
print("")
|
||||||
print("ID: "..os.getComputerID())
|
print("ID: "..os.getComputerID())
|
||||||
|
print("User: "..sPhone.user)
|
||||||
if os.getComputerLabel() then
|
if os.getComputerLabel() then
|
||||||
print("Label: "..os.getComputerLabel())
|
print("Label: "..os.getComputerLabel())
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue