Posted 29 April 2014 - 06:59 PM
To proper explain this, I will explain by topics:
- I have a program that has a GUI that manages everything
- When I adapted coroutine for program to run it like
runProg = function(program) x, y = term.getSize() myWindow = window.create(term.current(),1,2,x,y-1, true) term.redirect(myWindow) shell.run(program) term.redirect(term.native())` myWindow.setVisibility(false) --not sure about this part end runProgC = coroutine.create(runProg(the program here)) ok, err = coroutine.resume(runProgC)
- then, it returns to the main program without running that program
- Yes, it's for my OS