also fix another bug in selopt
This commit is contained in:
@@ -24,13 +24,12 @@ function term.setcol(fc, bc)
|
|||||||
term.setBackgroundColor(bc)
|
term.setBackgroundColor(bc)
|
||||||
end
|
end
|
||||||
local function selopt(options, title)
|
local function selopt(options, title)
|
||||||
reset()
|
|
||||||
term.setcol(colors.black, colors.white)
|
|
||||||
term.write(title)
|
|
||||||
|
|
||||||
local selected = 1
|
local selected = 1
|
||||||
|
|
||||||
while true do
|
while true do
|
||||||
|
reset()
|
||||||
|
term.setcol(colors.black, colors.white)
|
||||||
|
term.write(title)
|
||||||
for i,v in pairs(options) do
|
for i,v in pairs(options) do
|
||||||
incline()
|
incline()
|
||||||
if i == selected then
|
if i == selected then
|
||||||
|
|||||||
Reference in New Issue
Block a user