Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local headline = ""
- local toppriority = ""
- local secondary = ""
- local wouldbenice = ""
- local alwaystry = ""
- function Liste()
- -- Headline
- term.setTextColor(colors.white)
- term.setCursorPos(1,1)
- term.write(headline)
- -- Toppriority
- term.setTextColor(colors.red)
- term.setCursorPos(1,3)
- term.write(toppriority)
- -- secondary
- term.setTextColor(colors.orange)
- term.setCursorPos(1,5)
- term.write(secondary)
- -- wouldbenice
- term.setTextColor(colors.lime)
- term.setCursorPos(1,7)
- term.write(wouldbenice)
- -- alwaystry
- term.setTextColor(colors.white)
- term.setCursorPos(1,9)
- term.write(alwaystry)
- end
- Liste()
- function KeyListe()
- while true do
- local sEvent, param = os.pullEvent("key")
- if sEvent == "key" then
- if param == 2 then
- term.setCursorPos(1,3)
- term.setTextColor(colors.green)
- term.write(toppriority + "- OK")
- KeyListe()
- if param == 3 then
- term.setCursorPos(1,5)
- term.setTextColor(colors.green)
- term.write(secondary + "- OK")
- KeyListe()
- if param == 4 then
- term.setCursorPos(1,7)
- term.setTextColor(colors.green)
- term.write(wouldbenice + "- OK")
- KeyListe()
- if param == 5 then
- term.setCursorPos(1,9)
- term.setTextColor(colors.green)
- term.write(alwaystry + "- OK")
- KeyListe()
- end
- while true do
- KeyListe
- end
Advertisement
Add Comment
Please, Sign In to add comment