also fix another bug in selopt

This commit is contained in:
Justus Wolff
2026-02-14 22:26:20 +01:00
parent 1fdd26a014
commit c671428cbc

View File

@@ -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