Delete Print.lua.lua

This commit is contained in:
minecartchris
2024-06-25 17:27:11 -05:00
committed by GitHub
parent d4b94402ed
commit c30c81b222

View File

@@ -1,26 +0,0 @@
--Very Basic Print API
local printer = peripheral.find("printer")
print("Basic PhileOS Print API")
print("V 1.0")
print("")
print("Save file to \"/print this\" to print.")
while true do
if fs.exists("print this") then
local fh = fs.open("print this", "r")
printer.newPage()
local x, y = printer.getPageSize()
local line = fh.readLine()
local linenum = 1
while line ~= nil and linenum <= y do
printer.setCursorPos(1, linenum)
printer.write(line)
linenum = linenum + 1
line = fh.readLine()
end
printer.endPage()
fh.close()
fs.delete("print this")
end
os.sleep()
end