Hi Guys,

I am having a huge rewrite of OmniOS, and one of the things that has been bothering me is that it is running inside this parralle.waitForAny loop. So naturally I tried breaking out of the TLC. The thing is that they do not seem to work anymore. Is that normal?

I tried the one using rednet:


os.queueEvent("modem_message:")

Does anyone have an alternative and/or a tip?

Edit: I managed to crash rednet, but am still unable to take control afterwards.

New code:

local a = _G.printError
function _G.printError()--when the bios goes to print the error, we run our code
    _G.printError=a
    --no multishell
    term.redirect(term.native())
    multishell=nil
    --no window
    term.setTextColor(colors.yellow)term.setBackgroundColor(colors.black)
    term.clear()term.setCursorPos(1,1)
    write"Multishelless Top-level "
    os.run({},"rom/programs/shell")
end

os.queueEvent("modem_message", {})
os.pullEvent()
read()