Create sertexID.lua
This commit is contained in:
parent
9f733185f4
commit
d86be6097e
1 changed files with 22 additions and 0 deletions
22
src/apps/system/sertexID.lua
Normal file
22
src/apps/system/sertexID.lua
Normal file
|
@ -0,0 +1,22 @@
|
|||
local function clear()
|
||||
term.setBackgroundColor(colors.white)
|
||||
term.setTextColor(colors.black)
|
||||
term.clear()
|
||||
term.setCursorPos(1,1)
|
||||
end
|
||||
|
||||
local function header()
|
||||
clear()
|
||||
local w, h = term.getSize()
|
||||
paintutils.drawLine(1,1,w,1, colors.gray)
|
||||
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()
|
Loading…
Reference in a new issue