Create sertexID
This commit is contained in:
parent
1b92f182dc
commit
9fbbf871f2
1 changed files with 22 additions and 0 deletions
22
src/apps/system/sertexID
Normal file
22
src/apps/system/sertexID
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