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 = {
|
local menu = {
|
||||||
"Update",
|
"Update",
|
||||||
"Change Password",
|
"Change Password",
|
||||||
|
"Set Label",
|
||||||
|
"Clear Label",
|
||||||
}
|
}
|
||||||
|
|
||||||
local function clear()
|
local function clear()
|
||||||
|
@ -124,6 +126,20 @@ local function changePassword()
|
||||||
return
|
return
|
||||||
end
|
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 w, h = term.getSize()
|
||||||
|
|
||||||
local function redraw()
|
local function redraw()
|
||||||
|
|
Loading…
Reference in a new issue