This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
lennyitb's profile picture

Bundled cables, addressable pixels and background programs

Started by lennyitb, 05 August 2014 - 05:25 PM
lennyitb #1
Posted 05 August 2014 - 07:25 PM
A few things:
  1. Support for more bundled cables (namely project red :)/> )
  2. Adressable pixels, I know you can do this:
    
    					term.setCurorPos(2,2); term.write(" ")
    					
    but I mean pixels, not characters.
  3. Background programs: this could mean sabotage which will be fun, but should also have a config option for those who want none of it. This could also be used to make a custom shell. These programs would be able to draw on the screen and pull events, just run with another program or while it appears that no program at all is running. This is how I envision it:
    
    				shell.background()
    				go = true
    				modem = peripheral.wrap("left")
    				modem.open(68 + 1)
    				send = function()
    				  while true do
    					evt, char = os.PullEvent("char")
    					modem.transmit(68 + 1, 72 - 3, char)
    				  end
    				end
    				receive = function()
    				  while go == true do
    					evt,_,_,_,message,_ = os.pullEvent("modem_message")
    					if message == "stop" then go = false
    				  end
    				end
    				parallel.waitForAny(send,receive)
    				
    You could also make a pretty good message system with it.
Thanks,
Lenny
Cranium #2
Posted 05 August 2014 - 07:47 PM
  1. Bundled cable support for Project:RED is coming from their side. SInce we now have an API for developers to use, we have people working on implementing it in their own mod. This is better than us having to do an update for each mod that wants compatibility.
  2. Check out the paintutils api.
  3. There's multishell tabs already available, and you can run programs in the background as well using windows.