Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function GetScreenSize()
- w, h = term.getSize()
- end
- local function DrawBackground(grootte)
- tellerx=w
- tellery=h
- bgcolorteller=1
- repeat
- repeat
- term.setTextColor(bgcolorteller)
- term.write("#")
- tellery=tellery-1
- until tellery==0
- tellery=h
- tellerx=tellerx-1
- bgcolorteller=bgcolorteller+1
- until tellerx==0
- end
- local function DrawTitle()
- term.clear()
- term.setBackgroundColor(8)
- term.setTextColor(1)
- term.setCursorPos(0,0)
- term.write("TrashOS")
- GetScreenSize()
- --print ("x:"..w)
- --print ("y:"..h)
- print ("----------------")
- print ("| TrashOS v2.0 |")
- print ("----------------")
- end
- local function Initialize()
- --DrawBackground()
- DrawTitle()
- term.write(os.time())
- end
- local function InitWiredModem(side)
- --modem=peripheral.wrap(tostring(side))
- modem=peripheral.wrap('left')
- modem.open(668)
- print ("port 668 opened for listening")
- modem.transmit(666,668, "OS BOOTED")
- print ("message sent over port 666")
- end
- Initialize()
- InitWiredModem('left')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement