Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- runCutLine=function(start,stop,name)
- os.loadAPI("shell")
- data={}
- if fs.exists("maxintosh/RAM/"..name) then
- fs.delete("maxintosh/RAM/"..name)
- end
- fs.copy(name,"maxintosh/RAM/"..name)
- f=fs.open("maxintosh/RAM/"..name,"r")
- for i=1,start-1 do
- trash=f.readLine()
- end
- for i=start,stop do
- data[(i-start)+1]=f.readLine()
- end
- f.close()
- fs.delete("maxintosh/RAM/"..name)
- f=fs.open("maxintosh/RAM/"..name,"w")
- for i=1,(stop-start)+1 do
- f.writeLine(data[i])
- end
- f.close()
- shell.run("maxintosh/RAM/"..name)
- fs.delete("maxintosh/RAM/"..name)
- end
- drawWindow=function(x,y,colWind)
- x2=51-(x-1)
- y2=19-(y-1)
- paintutils.drawFilledBox(x,y,x2,y2,colors[colWind])
- paintutils.drawBox(x,y,x2,y2,colors.black)
- term.setBackgroundColor(colors.red)
- term.setTextColor(colors.black)
- term.setCursorPos(x2,y)
- write("X")
- end
Advertisement
Add Comment
Please, Sign In to add comment