Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function commands()
- shell.setAlias("help", "/os/help")
- shell.clearAlias("shutdown")
- shell.clearAlias("reboot")
- shell.setAlias("pastebin", "/os/un")
- shell.setAlias("bgedit", "/os/bgedit")
- shell.setAlias("desktop", "/os/desktop")
- shell.setAlias("login", "/os/login")
- shell.clearAlias("id")
- shell.setAlias("id", "/os/id")
- shell.setAlias("uninstall", "/os/uninstall")
- shell.clearAlias("paint")
- shell.setAlias("ssh", "/os/ssh")
- shell.clearAlias("lua")
- shell.setAlias("lua", "/os/un")
- shell.setAlias("startup", "/os/un")
- end
- term.setBackgroundColor(colors.white)
- term.clear()
- term.setCursorPos(1, 3)
- term.setBackgroundColor(colors.blue)
- term.setTextColor(colors.white)
- print("This Desktop supports:")
- function ClD()
- term.setBackgroundColor(colors.white)
- term.clear()
- term.setBackgroundColor(colors.blue)
- term.clearLine()
- term.setCursorPos(1, 1)
- end
- term.setCursorPos(1, 3)
- term.clearLine()
- term.setBackgroundColor(colors.blue)
- term.setCursorPos(1, 20)
- term.clearLine()
- term.setCursorPos(1, 20)
- local text2 = "J:OS Beta 1.7"
- write(text2)
- term.setCursorPos(1, 3)
- local image3 = paintutils.loadImage("ASSETS/Desktop")
- paintutils.drawImage(image3, 3, 5)
- -- Draw the text
- local tx, ty = 3, 1
- local text = "[CMD LINE]"
- term.setCursorPos(tx, ty)
- write(text)
- -- Event loop
- while true do
- local sides = {"top","bottom","back","front","left","right"}
- local disk1 = disk.isPresent(sides[1])
- if disk == true then
- disk.eject(sides)
- end
- local e, but, cx, cy = os.pullEvent()
- if e == "mouse_click" then
- if cx >= tx and cx <= tx + text:len() and cy == ty then
- commands()
- term.setBackgroundColor(colors.black)
- term.clear()
- term.setCursorPos(1, 1)
- term.setTextColor(colors.yellow)
- print("J:OS Beta 1.7")
- break
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement