Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function draw(endStr, middleChar, amount, mode, programname)
- scrX, scrY = term.getCursorPos()
- local str = ""
- str = endStr..string.rep(" ", amount)..endStr
- write(str)
- term.setCursorPos(scrX + 1, scrY)
- str = ""
- for i=1,amount do
- write(middleChar)
- sleep(1)
- end
- if mode == "print" then print() end
- if programname then
- shell.run(programname)
- end
- end
- print("Loading...")
- draw("|", ".", 4, "write", "done")
Add Comment
Please, Sign In to add comment