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
- print("Benvenuto su APT! Qua potrai gestire le varie app non ufficiali, le libreire e molto altro!")
- 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, "apt") ~= nil and string.find(cmd, "update") ~= nil then
- print("Aggiorno APT!\n")
- shell.run("rm /Hack/app/prompt_APT-luaDir")
- shell.run("pastebin get Y8ZAVKJE /Hack/app/prompt_APT.luaDir")
- elseif string.find(cmd, "help") ~= nil then
- print("APT HELP PAGE\napp install <appname>\napp purge <appname>\napp list\napp update <appname>\nlib install <lib>\nlib purge <lib>\nlib list\nlib update <lib>")
- else
- print("Comando non trovato!")
- end
- end
Add Comment
Please, Sign In to add comment