Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- drawTerminal = function()
- term.setBackgroundColor(colors.black)
- term.clear()
- term.setBackgroundColor(colors.gray)
- term.setCursorPos(1,1)
- term.clearLine()
- term.setCursorPos(1,1)
- term.setTextColor(colors.black)
- print("OSX-Terminal")
- end
- drawTerminal()
- word = function()
- term.setBackgroundColor(colors.black)
- term.setTextColor(colors.blue)
- term.write("OSX@user/term")
- term.setTextColor(colors.lime)
- write(" $ ")
- term.setTextColor(colors.white)
- end
- word()
- input = read()
- while true do
- if input == "exit" then
- shell.run("OSX")
- elseif input == "back" then
- shell.run("OSX")
- elseif input == "download" then
- print("write the ID")
- word()
- input1 = read()
- print("write the name")
- word()
- input2 = read()
- shell.run("pastebin get "..input1.." "..input2)
- word()
- input = read()
- elseif input == "help" then
- print("write 'exit' to exit the terminal")
- print("write 'download' to download a file from pastebin")
- print("write 'back' to exit the terminal")
- print("write 'clear' to clear the Terminal")
- print("write 'delete' to delete a custom file")
- print("write 'help2' for more info")
- word()
- input = read()
- elseif input == "clear" then
- drawTerminal()
- word()
- input = read()
- elseif input == "delete" then
- print("write the file u will delete")
- word()
- input3 = read()
- fs.delete(input3)
- print("deleted "..input3)
- word()
- input = read()
- elseif input == "run" then
- print("what file will u run?")
- word()
- input4 = read()
- print("Running the file")
- sleep(2)
- shell.run(input4)
- shell.run("Terminal")
- break
- elseif input == "edit" then
- print("what file will u edit?")
- word()
- input5 = read()
- shell.run("edit "..input5)
- shell.run("Terminal")
- elseif input == "help2" then
- print("write 'run' to run a custom file")
- print("write 'edit' to edit a custom file")
- word()
- input = read()
- elseif input == "ls" then
- shell.run("ls")
- word()
- input = read()
- else
- word()
- input = read()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement