Update settings.lua
This commit is contained in:
parent
eef211e162
commit
8137ee6c1d
1 changed files with 16 additions and 0 deletions
|
@ -4,6 +4,8 @@ local pwChangeRep
|
|||
local menu = {
|
||||
"Update",
|
||||
"Change Password",
|
||||
"Set Label",
|
||||
"Clear Label",
|
||||
}
|
||||
|
||||
local function clear()
|
||||
|
@ -124,6 +126,20 @@ local function changePassword()
|
|||
return
|
||||
end
|
||||
|
||||
local function changeLabel()
|
||||
header()
|
||||
sertextext.center(3, "Set Label")
|
||||
term.setCursorPos(2,5)
|
||||
local newLabel = read()
|
||||
os.setComputerLabel(newLabel)
|
||||
sPhone.winOk("Computer Label set")
|
||||
end
|
||||
|
||||
local function clearLabel()
|
||||
os.setComputerLabel(nil)
|
||||
sPhone.winOk("Computer Label cleared")
|
||||
end
|
||||
|
||||
local w, h = term.getSize()
|
||||
|
||||
local function redraw()
|
||||
|
|
Loading…
Reference in a new issue