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