5bitesofcookies

nomultishell

Feb 20th, 2015
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.55 KB | None | 0 0
  1. if window or multishell then
  2.   sleep(0)
  3.   --tlco
  4.   local a = _G.printError
  5.   function _G.printError()--when the bios goes to print the error, we run our code
  6.     _G.printError=a
  7.     --no multishell
  8.     term.redirect(term.native())
  9.     multishell=nil
  10.     --no window
  11.     term.setTextColor(colors.yellow)term.setBackgroundColor(colors.black)
  12.     term.clear()term.setCursorPos(1,1)
  13.     write"Multishelless Top-level "
  14.     os.run({},"rom/programs/shell")
  15.   end
  16.   os.queueEvent"terminate"--cause the shell to terminaye
  17. else
  18.   shell.run"newStartup"
  19. end
Advertisement
Add Comment
Please, Sign In to add comment