Posted 16 March 2015 - 09:59 PM
This api make a limited read.
pastebin get XaUkiU5a readAPI
Example:
Deleting function wil be added later.
pastebin get XaUkiU5a readAPI
Example:
Spoiler
os.loadAPI("readAPI")
function clear()
term.setBackgroundColor(colors.blue)
term.clear()
end
local x,y = term.getSize()
function reset()
term.setCursorPos((x/2)-5,y/2)
end
term.setTextColor(colors.blue)
local a = ""
while true do
clear()
term.setCursorPos((x/2)-5,(y/2)+5)
term.setTextColor(colors.white)
term.write(a)
reset()
term.setBackgroundColor(colors.white)
term.write(" ")
print(3)
reset()
term.setTextColor(colors.blue)
a = readAPI.limitedRead(11, "*")
end
Deleting function wil be added later.