View difference between Paste ID: g7XAUa1Z and gda21ksW
SHOW: | | - or go back to the newest paste.
1
function commands() 
2
shell.setAlias("help", "/os/help")
3-
term.setCursorPos(1, 5)
3+
shell.clearAlias("shutdown")
4
shell.clearAlias("reboot")
5
shell.setAlias("pastebin", "/os/un")
6
shell.setAlias("bgedit", "/os/bgedit")
7
shell.setAlias("desktop", "/os/desktop")
8
shell.setAlias("login", "/os/login")
9
shell.clearAlias("id")
10
shell.setAlias("id", "/os/id")
11
shell.setAlias("uninstall", "/os/uninstall")
12
shell.clearAlias("paint")
13
shell.setAlias("ssh", "/os/ssh")
14-
term.setCursorPos(1, 5)
14+
shell.clearAlias("lua")
15
shell.setAlias("lua", "/os/un")
16
shell.setAlias("startup", "/os/un")
17
end
18
term.setBackgroundColor(colors.white)
19
term.clear()
20
term.setCursorPos(1, 3)
21
term.setBackgroundColor(colors.blue)
22
term.setTextColor(colors.white)
23
print("This Desktop supports:")
24-
paintutils.drawImage(image3, 6, 4)
24+
25
term.setBackgroundColor(colors.white)
26
term.clear()
27-
local tx2, ty2 = 15, 1
27+
28-
local tx3, ty3 = 27, 1
28+
29-
local tx4, ty4 = 37, 1
29+
30-
local tx5, ty5 = 3, 3
30+
31-
local tx6, ty6 = 13, 3
31+
32-
local tx7, ty7 = 25, 3
32+
33-
local text2 = "[SETTINGS]"
33+
34
term.setCursorPos(1, 20)
35-
local text3 = "[REBOOT]"
35+
36-
local text4 = "[BROWSER]"
36+
37-
local text5 = "[UPDATE]"
37+
38-
local text6 = "[DOWNLOAD]"
38+
39-
local text7 = "[AntiFile]"
39+
40-
term.setBackgroundColor(colors.red)
40+
41-
term.setCursorPos(1,1)
41+
paintutils.drawImage(image3, 3, 5)
42
-- Draw the text
43-
term.setCursorPos(1,2)
43+
44
local text = "[CMD LINE]"
45-
term.setCursorPos(1,3)
45+
46
write(text)
47-
term.setCursorPos(1,4)
47+
48
-- Event loop
49-
term.setBackgroundColor(colors.green)
49+
50
local sides = {"top","bottom","back","front","left","right"}
51
local disk1 = disk.isPresent(sides[1])
52-
term.setCursorPos(tx2,ty2)
52+
53
disk.eject(sides)
54-
term.setCursorPos(tx3,ty3)
54+
55-
write(text3)
55+
56-
term.setCursorPos(tx4,ty4)
56+
57-
write(text4)
57+
58-
term.setCursorPos(tx5,ty5)
58+
commands() 
59-
write(text5)
59+
60-
term.setCursorPos(tx6,ty6)
60+
61-
write(text6)
61+
62-
term.setCursorPos(tx7,ty7)
62+
term.setTextColor(colors.yellow)
63-
write(text7)
63+
print("J:OS Beta 1.7")
64
          break
65
end
66
end
67
end