BasicOS
Never
--[[ BasicOS ]]-- --[[ Just Does Games ]]-- --[[ FUNCTIONS ]]-- function clr() term.clear() end function cp(x,y) term.setCursorPos(x,y) end function sb(col) term.setBackgroundColor(colors[col]) end function st(col) term.setTextColor(colors[col]) end --[[ FUNCTIONS ]]-- --[[ INSTALL ]]-- function install() drawScreen() sb("lightGray") cp(1,5) print("BasicOS if a simple to use and install opperating system used for the simple and more advanced commands, options, and common security for your computer.") repeat a,i = os.pullEvent("key") until i == keys.right or i == keys.d drawScreen() cp(1,5) print("Files to be added:") print(" "..string.char(187).." BasicOS/main.lua") print(" "..string.char(187).." BasicOS/config.lua") print(" "..string.char(187).." BasicOS/MenuAPI/MenuAPI.lua") cp(1,10) print("Press "..string.char(16).." to continue") repeat a,i = os.pullEvent("key") until i == keys.right or i == keys.d drawScreen() print("Do you wish to install BasicOS and agree to all the files created via through Pastebin or installer?") print("") local cpx,cpy = term.getCursorPos() local running = true local sel = 1 while running do cp(cpx,cpy) if sel == 1 then displayText(string.char(187).."Deny") displayText(" Accept") else displayText(" Deny") displayText(string.char(187).."Accept") end a,i = os.pullEvent("key") if i == keys.w or i == keys.up then if sel ~= 1 then sel = 1 end elseif i == keys.s or i == keys.down then if sel ~= 2 then sel = 2 end elseif i == keys.e or i == keys.enter then running = false end end if sel == 2 then -- attempt to install via pastebin -- failed: extract from here (copy MenuAPI to this file... main already included... config is blank for now) else sb("black") st("white") clr() cp(1,1) end end function drawScreen() sb("lightGray") clr() cp(1,sy) sb("gray") for i=1, sx do write(" ") end cp(sx,sy) st("white") write(string.char(16)) sb("white") cp(1,1) st("black") displayText(" Welcome to BasicOS! ") cp(1,2) displayText(" Installer ") cp(1,3) sb("gray") for i=1, sx do write(" ") end sb("lightGray") end function displayText(text) local x,y = term.getSize() local x2,y2 = term.getCursorPos() term.setCursorPos(math.ceil((x / 2) - (text:len() / 2)), y2) print(text) end --[[ INSTALL ]]-- --[[ INIT ]]-- sx,sy = term.getSize() color = term.isColor() if fs.exists("BasicOS/config.lua") == false or shell.getRunningProgram() ~= "BasicOS/main.lua" then install() end --[[ INIT ]]-- --[[ VARIABLES ]]-- --[[ VARIABLES ]]-- --[[ SECURITY ]]-- --[[ SECURITY ]]--
Raw Text
-
Slimy Stud Convinces Asian Gold Digger That He's Loaded So She'd Allow Him To Impregnate H
1 min ago
-
Adult Telegram Channels
2 min ago
-
Untitled
3 min ago
-
DLF The Magnolias Apartment for Rent Gurgaon
8 min ago
-
The Last Kumite Streamcloud Deutsch Ganzer Film
17 min ago
-
https://www.facebook.com/SmartHempGummiesNewZealand.NZ/
22 min ago
-
Untitled
28 min ago
-
Less Reading More Sucking & Fucking feat. The Nerd Harley King - Exxxtra Small
31 min ago
-
Adult Video Girls
55 min ago
-
Untitled
1 hour ago