Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function mprint(data, m)
- if m==nil then print("You forgot the m argument, faggot.") end
- local dummy,i=m.getCursorPos()
- m.write(data)
- if i<12 then m.setCursorPos(1, i+1) end
- if i>=12 then m.scroll(1) m.setCursorPos(1,12) end
- end
- function mprintFile(dir, m)
- file=fs.open(dir, "r")
- m.clear()
- m.setCursorPos(1,1)
- line="Debut"
- while not (line==nil) do
- sleep(0.2)
- line=file.readLine()
- mp.mprint(line, m)
- end
- fs.delete(file)
- end
Add Comment
Please, Sign In to add comment