Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local args = {...}
- local mon = peripheral.wrap(args[1])
- local xmax,ymax = mon.getSize()
- local linexpos = 1
- local borderline = string.rep("=",xmax)
- local scrollx = xmax
- while true do
- mon.clear()
- mon.setCursorPos(1,1)
- mon.write(borderline)
- mon.setCursorPos(1,ymax)
- mon.write(borderline)
- mon.setCursorPos(scrollx,(ymax+1)/2)
- mon.write(args[2])
- scrollx = scrollx-1
- if scrollx == -10-string.len(args[2]) then
- scrollx = xmax
- end
- sleep(0.2)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement