function custom(options)
position = 1
while true do
term.clear()
term.setCursorPos(1,2)
for i = 1, #options, 1 do
if i == position then print(" >"..options[i].."<") else print( " ".. options[i]) end
end
a, b = os.pullEvent("key")
if b == 200 and position > 1 then position = position - 1 end
if b == 208 and position < #options then position = position + 1 end
if b == 57 then break end
end
term.clear()
term.setCursorPos(1,2)
return position
end
Any help will be appreciated in advanced thanks.
Edited by Bubba, 23 April 2014 - 05:29 AM.











