Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- pc moniteur
- rednet.open("front")
- m = peripheral.wrap("bottom")
- term.redirect(m)
- term.clear()
- term.setCursorPos(1,1)
- term.setCursorBlink(false)
- while true do
- Local id, message, dist = rednet.receive()
- -- si message = twhite alors le texte s’écrie en blanc ect...
- if message == twhite then
- term.setTextColor(colors.white)
- elseif message == torange then
- term.setTextColor(colors.orange)
- elseif message == tmagenta then
- term.setTextColor(colors.magenta)
- elseif message == tlightBlue then
- term.setTextColor(colors.lightblue)
- elseif message == tyellow then
- term.setTextColor(colors.yellow)
- elseif message == tlime then
- term.setTextColor(colors.lime)
- elseif message == tpink then
- term.setTextColor(colors.pink)
- elseif message == tgray then
- term.setTextColor(colors.gray)
- elseif message == tlightgray then
- term.setTextColor(colors.lightgray)
- elseif message == tcyan then
- term.setTextColor(colors.cyan)
- elseif message == tpurple then
- term.setTextColor(colors.purple)
- elseif message == tblue then
- term.setTextColor(colors.blue)
- elseif message == tbrown then
- term.setTextColor(colors.brown)
- elseif message == tgreen then
- term.setTextColor(colors.green)
- elseif message == tred then
- term.setTextColor(colors.red)
- elseif message == tblack then
- term.setTextColor(colors.black)
- -- si message = fwhite alors le font serra blanc ect...
- elseif message == fwhite then
- term.setBackgroundColor(colors.white)
- elseif message == forange then
- term.setBackgroundColor(colors.orange)
- elseif message == fmagenta then
- term.setBackgroundColor(colors.magenta)
- elseif message == flightBlue then
- term.setBackgroundColor(colors.lightblue)
- elseif message == fyellow then
- term.setBackgroundColor(colors.yellow)
- elseif message == flime then
- term.setBackgroundColor(colors.lime)
- elseif message == fpink then
- term.setBackgroundColor(colors.pink)
- elseif message == fgray then
- term.setBackgroundColor(colors.gray)
- elseif message == flightgray then
- term.setBackgroundColor(colors.lightgray)
- elseif message == fcyan then
- term.setBackgroundColor(colors.cyan)
- elseif message == fpurple then
- term.setBackgroundColor(colors.purple)
- elseif message == fblue then
- term.setBackgroundColor(colors.blue)
- elseif message == fbrown then
- term.setBackgroundColor(colors.brown)
- elseif message == fgreen then
- term.setBackgroundColor(colors.green)
- elseif message == fred then
- term.setBackgroundColor(colors.red)
- elseif message == fblack then
- term.setBackgroundColor(colors.black)
- else
- end
- term.write("bienvenu à l'usine !")
- term.restore()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement