Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.setBackgroundColor(colors.black)
- term.setTextColor(colors.white)
- term.clear()
- term.setCursorPos(1, 1)
- function getReq()
- x, y = term.getCursorPos()
- if y > 16 then
- term.clear()
- term.setCursorPos(1, 1)
- else
- print(">")
- term.setCursorPos(x+2, y)
- return read()
- end
- end
- while true do
- cmd = getReq()
- if string.find(cmd, "exit") ~= nil or string.find(cmd, "quit") ~= nil then
- shell.run("desktop")
- elseif string.find(cmd, "rm") ~= nil and string.find(cmd, "Hack") ~= nil then
- print("ATTENZIONE!\nStai provando ad eliminare la cartella principale di HackOS!")
- elseif string.find(cmd, "rm") ~= nil and string.find(cmd, "startup") ~= nil then
- print("ATTENZIONE!\nStai provando ad eliminare il launcher di HackOS!")
- elseif string.find(cmd, "rm") ~= nil and string.find(cmd, "desktop") ~= nil then
- print("ATTENZIONE!\nStai provando ad eliminare l'istanza desktop di HackOS!")
- elseif string.find(cmd, "rm") ~= nil and string.find(cmd, ".localConf") ~= nil then
- print("HackOS Warning\nERROR: Permission denied!\nOS_important_file_callExp()")
- elseif string.find(cmd, "server") ~= nil then
- print("Stai giocando su RGBCraft!\nDal 2010 by lego11 <3")
- elseif string.find(cmd, "promptManager") ~= nil then
- print("Sto avviando il prompt APT!")
- shell.run("/Hack/app/prompt_APT.luaDir")
- elseif string.find(cmd, "getManager") ~= nil then
- print("Installazione del prompt HackOS_APT!")
- if fs.isDir("/Hack/app") ~= true then
- shell.run("mkdir /Hack/app")
- end
- shell.run("pastebin get Y8ZAVKJE /Hack/app/prompt_APT.luaDir")
- else
- shell.run(cmd)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment