Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shell.run("clear")
- mon = peripheral.wrap("back")
- white = colors.white
- blue = colors.blue
- sbcol = white
- stcol = blue
- gx, gy = mon.getSize()
- function cbut(cx,cy,text,bcol,tcol)
- if bcol == nil then
- bcol = sbcol
- end
- if tcol == nil then
- tcol = stcol
- end
- mon.setCursorPos(cx,cy)
- mon.setBackgroundColor(bcol)
- mon.setTextColor(tcol)
- mon.write(text)
- mon.setBackgroundColor(sbcol)
- mon.setTextColor(stcol)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement