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

shell.whatNow?()

Started by IndustrialLemon, 25 March 2013 - 09:46 AM
IndustrialLemon #1
Posted 25 March 2013 - 10:46 AM
Alright so heres the deal. I've been working on an operating system of mine for awhile now, and one of the main menu options is to open up the shell. Now i've tried things like shell.exit() and shell.run("shell") and these would work if I weren't already in a program.

So my question is, anybody know a command or some lines of code to exit out of my current program IN the program?

Also out of curiosity what does shell.exit() do?

If you need me to post the code or the errors i'm getting let me know.
Doyle3694 #2
Posted 25 March 2013 - 10:49 AM
shell.exit() I beileve puts the focus 1 step down in the stack, what you might be looking for is 'error()' which will return to the shell from your program
SuicidalSTDz #3
Posted 25 March 2013 - 10:52 AM
shell.exit() exits out of the current shell as it suggests. Say you did something like this:

os.run({},"/rom/programs/shell")

Then if we do this:

shell.exit()

It will exit out of the new shell we had just created


What do you mean open up the shell? Please post your code.
IndustrialLemon #4
Posted 25 March 2013 - 11:23 AM
Alright Doyle so error did bring me back to the shell but now its giving me an error when I try to do anything in that shell. This is the error:

edit :9: attempt to index ? (a function value)

Oh and I'm typing things like "edit test" and "edit os".
Doyle3694 #5
Posted 26 March 2013 - 01:27 AM
Could you post all of your code? I think you have overwritten a function that is used inside edit
IndustrialLemon #6
Posted 26 March 2013 - 10:28 AM
Alright but theres a lot of stuff here. Look towards the end where the actual function of the os is. Most of the stuff at the beginning is just for animations or graphics. Oh and hey if you solve this problem for me and your interested I'm looking for developers.

  • [indent=1]term.setCursorPos(1,1)[/indent]
  • [indent=1]term.clear()[/indent]
  • [indent=1]term.setBackgroundColor(colors.gray)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(19,10)[/indent]
  • [indent=1]term.setBackgroundColor(colors.yellow)[/indent]
  • [indent=1]sleep(.000000000000000000000000000000000001)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]sleep(.000000000000000000000000000000000001)[/indent]
  • [indent=1]term.setCursorPos(20,10)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(20,9)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(20,8)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(20,11)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(20,12)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]sleep(.000000000000000000000000000000000001)[/indent]
  • [indent=1]term.setCursorPos(21,10)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(21,9)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(21,8)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(21,7)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(21,11)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(21,12)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(21,13)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]sleep(.000000000000000000000000000000000001)[/indent]
  • [indent=1]term.setCursorPos(22,10)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(22,9)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(22,8)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(22,7)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(22,11)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(22,12)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(22,13)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]sleep(.000000000000000000000000000000000001)[/indent]
  • [indent=1]term.setCursorPos(23,10)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(23,9)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(23,8)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(23,7)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(23,6)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(23,11)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(23,12)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(23,13)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(23,14)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]sleep(.000000000000000000000000000000000001)[/indent]
  • [indent=1]term.setCursorPos(24,10)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(24,9)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(24,8)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(24,7)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(24,6)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(24,11)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(24,12)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(24,13)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(24,14)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]sleep(.000000000000000000000000000000000001)[/indent]
  • [indent=1]term.setCursorPos(25,10)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(25,9)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(25,8)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(25,7)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(25,6)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(25,11)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(25,12)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(25,13)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(25,14)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]sleep(.000000000000000000000000000000000001)[/indent]
  • [indent=1]term.setCursorPos(26,10)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(26,9)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(26,8)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(26,7)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(26,6)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(26,11)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(26,12)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(26,13)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(26,14)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]sleep(.000000000000000000000000000000000001)[/indent]
  • [indent=1]term.setCursorPos(27,10)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(27,9)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(27,8)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(27,7)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(27,6)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(27,11)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(27,12)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(27,13)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(27,14)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]sleep(.000000000000000000000000000000000001)[/indent]
  • [indent=1]term.setCursorPos(28,10)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(28,9)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(28,8)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(28,7)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]–term.setCursorPos(28,6)[/indent]
  • [indent=1]–print(" ")[/indent]
  • [indent=1]term.setCursorPos(28,11)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(28,12)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(28,13)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]–term.setCursorPos(28,14)[/indent]
  • [indent=1]–print(" ")[/indent]
  • [indent=1]sleep(.000000000000000000000000000000000001)[/indent]
  • [indent=1]term.setCursorPos(29,10)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(29,9)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(29,8)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(29,7)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(29,11)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(29,12)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(29,13)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]sleep(.000000000000000000000000000000000001)[/indent]
  • [indent=1]term.setCursorPos(30,10)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(30,9)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(30,8)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(30,11)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(30,12)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]sleep(.000000000000000000000000000000000001)[/indent]
  • [indent=1]term.setCursorPos(31,10)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]sleep(.5)[/indent]
  • [indent=1]term.setCursorPos(1,1)[/indent]
  • [indent=1]term.clear()[/indent]
  • [indent=1]term.setBackgroundColor(colors.gray)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(2,2)[/indent]
  • [indent=1]term.setBackgroundColor(colors.lightGray)[/indent]
  • [indent=1]term.setTextColor(colors.white)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(2,3)[/indent]
  • [indent=1]print(" Lemon's OS v1.0 ")[/indent]
  • [indent=1]term.setCursorPos(2,4)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(22,2)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(22,3)[/indent]
  • [indent=1]print(" [Settings] ")[/indent]
  • [indent=1]term.setCursorPos(22,4)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(37,2)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(37,3)[/indent]
  • [indent=1]print(" [CC Shell] ")[/indent]
  • [indent=1]term.setCursorPos(37,4)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(2,6)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(2,7)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(2,8)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(2,9)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(2,10)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(2,11)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(2,12)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(2,13)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(2,14)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(2,15)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(2,16)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(2,17)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]term.setCursorPos(2,18)[/indent]
  • [indent=1]print(" ")[/indent]
  • [indent=1]–term.setCursorPos(2,19)[/indent]
  • [indent=1]–print(" ")[/indent]
  • [indent=1] –Settings–[/indent]
  • [indent=1]function settings()[/indent]
  • [indent=1] –Small Window Trims–[/indent]
  • [indent=1] term.setBackgroundColor(colors.gray)[/indent]
  • [indent=1] term.setCursorPos(20,2)[/indent]
  • [indent=1] print(" ")[/indent]
  • [indent=1] term.setCursorPos(20,3)[/indent]
  • [indent=1] print(" ")[/indent]
  • [indent=1] term.setCursorPos(20,4)[/indent]
  • [indent=1] print(" ")[/indent]
  • [indent=1] term.setBackgroundColor(colors.lightGray)[/indent]
  • [indent=1] term.setCursorPos(21,2)[/indent]
  • [indent=1] print(" ")[/indent]
  • [indent=1] term.setCursorPos(21,3)[/indent]
  • [indent=1] print(" ")[/indent]
  • [indent=1] term.setCursorPos(21,4)[/indent]
  • [indent=1] print(" ")[/indent]
  • [indent=1] –Settings Menu Text–[/indent]
  • [indent=1] term.setCursorPos(2,3)[/indent]
  • [indent=1] print(" Settings ")[/indent]
  • [indent=1] term.setCursorPos(2,7)[/indent]
  • [indent=1] print(" [System Skins]")[/indent]
  • [indent=1] term.setCursorPos(2,9)[/indent]
  • [indent=1] print(" [Front Page Apps] ")[/indent]
  • [indent=1]end[/indent]
  • [indent=1]function shell()[/indent]
  • [indent=1] –Shell Screen–[/indent]
  • [indent=1] error()[/indent]
  • [indent=1]end[/indent]
  • [indent=1] –Main Menu Functionality–[/indent]
  • [indent=1] –Settings Functionality–[/indent]
  • [indent=1]while true do[/indent]
  • [indent=1] event, button, xpos, ypos = os.pullEvent("mouse_click")[/indent]
  • [indent=1] if xpos == 24 and ypos == 3 then[/indent]
  • [indent=1] settings()[/indent]
  • [indent=1] break[/indent]
  • [indent=1] elseif xpos == 25 and ypos == 3 then[/indent]
  • [indent=1] settings()[/indent]
  • [indent=1] break[/indent]
  • [indent=1] elseif xpos == 26 and ypos == 3 then[/indent]
  • [indent=1] settings()[/indent]
  • [indent=1] break[/indent]
  • [indent=1] elseif xpos == 27 and ypos == 3 then[/indent]
  • [indent=1] settings()[/indent]
  • [indent=1] break[/indent]
  • [indent=1] elseif xpos == 28 and ypos == 3 then[/indent]
  • [indent=1] settings()[/indent]
  • [indent=1] break[/indent]
  • [indent=1] elseif xpos == 29 and ypos == 3 then[/indent]
  • [indent=1] settings()[/indent]
  • [indent=1] break[/indent]
  • [indent=1] elseif xpos == 30 and ypos == 3 then[/indent]
  • [indent=1] settings()[/indent]
  • [indent=1] break[/indent]
  • [indent=1] elseif xpos == 31 and ypos == 3 then[/indent]
  • [indent=1] settings()[/indent]
  • [indent=1] break[/indent]
  • [indent=1] elseif xpos == 32 and ypos == 3 then[/indent]
  • [indent=1] settings()[/indent]
  • [indent=1] break[/indent]
  • [indent=1] elseif xpos == 33 and ypos == 3 then[/indent]
  • [indent=1] settings()[/indent]
  • [indent=1] break[/indent]
  • [indent=1] –CC Shell Funtionality–[/indent]
  • [indent=1] elseif xpos == 39 and ypos == 3 then[/indent]
  • [indent=1] shell()[/indent]
  • [indent=1] break[/indent]
  • [indent=1] end[/indent]
  • [indent=1]end[/indent]

Alright but theres a lot of stuff here. Look towards the end where the actual function of the os is. Most of the stuff at the beginning is just for animations or graphics. Oh and hey if you solve this problem for me and your interested I'm looking for developers.

<ol style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 48px; ">
[indent=1]term.setCursorPos(1,1)[/indent]
[indent=1]term.clear()[/indent]
[indent=1]term.setBackgroundColor(colors.gray)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]print(" ")[/indent]
[indent=1]print(" ")[/indent]
[indent=1]print(" ")[/indent]
[indent=1]print(" ")[/indent]
[indent=1]print(" ")[/indent]
[indent=1]print(" ")[/indent]
[indent=1]print(" ")[/indent]
[indent=1]print(" ")[/indent]
[indent=1]print(" ")[/indent]
[indent=1]print(" ")[/indent]
[indent=1]print(" ")[/indent]
[indent=1]print(" ")[/indent]
[indent=1]print(" ")[/indent]
[indent=1]print(" ")[/indent]
[indent=1]print(" ")[/indent]
[indent=1]print(" ")[/indent]
[indent=1]print(" ")[/indent]
[indent=1]print(" ")[/indent]
[indent=1]term.setCursorPos(19,10)[/indent]
[indent=1]term.setBackgroundColor(colors.yellow)[/indent]
[indent=1]sleep(.000000000000000000000000000000000001)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]sleep(.000000000000000000000000000000000001)[/indent]
[indent=1]term.setCursorPos(20,10)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]term.setCursorPos(20,9)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]term.setCursorPos(20,8)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]term.setCursorPos(20,11)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]term.setCursorPos(20,12)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]sleep(.000000000000000000000000000000000001)[/indent]
[indent=1]term.setCursorPos(21,10)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]term.setCursorPos(21,9)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]term.setCursorPos(21,8)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]term.setCursorPos(21,7)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]term.setCursorPos(21,11)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]term.setCursorPos(21,12)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]term.setCursorPos(21,13)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]sleep(.000000000000000000000000000000000001)[/indent]
[indent=1]term.setCursorPos(22,10)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]term.setCursorPos(22,9)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]term.setCursorPos(22,8)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]term.setCursorPos(22,7)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]term.setCursorPos(22,11)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]term.setCursorPos(22,12)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]term.setCursorPos(22,13)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]sleep(.000000000000000000000000000000000001)[/indent]
[indent=1]term.setCursorPos(23,10)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]term.setCursorPos(23,9)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]term.setCursorPos(23,8)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]term.setCursorPos(23,7)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]term.setCursorPos(23,6)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]term.setCursorPos(23,11)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]term.setCursorPos(23,12)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]term.setCursorPos(23,13)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]term.setCursorPos(23,14)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]sleep(.000000000000000000000000000000000001)[/indent]
[indent=1]term.setCursorPos(24,10)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]term.setCursorPos(24,9)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]term.setCursorPos(24,8)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]term.setCursorPos(24,7)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]term.setCursorPos(24,6)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]term.setCursorPos(24,11)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]term.setCursorPos(24,12)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]term.setCursorPos(24,13)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]term.setCursorPos(24,14)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]sleep(.000000000000000000000000000000000001)[/indent]
[indent=1]term.setCursorPos(25,10)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]term.setCursorPos(25,9)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]term.setCursorPos(25,8)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]term.setCursorPos(25,7)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]term.setCursorPos(25,6)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]term.setCursorPos(25,11)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]term.setCursorPos(25,12)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]term.setCursorPos(25,13)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]term.setCursorPos(25,14)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]sleep(.20class="sy0" style="color: rgb(102, 204, 102); ">.setCursorPos(26,12)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]term.setCursorPos(26,13)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]term.setCursorPos(26,14)[/indent]
[indent=1]print(" ")[/indent]
[indent=1]sleep(.000000000000000000000000000000000001)[/indent]
IndustrialLemon #7
Posted 26 March 2013 - 10:30 AM
Umm. Sorry Im not sure what happened to the last part of that paste. But I can give you the pastebin code. eutyWDV1
MudkipTheEpic #8
Posted 26 March 2013 - 10:37 AM
–MEGA SNIP–

Uh.. Spoiler please?

And why the bullet points?
IndustrialLemon #9
Posted 26 March 2013 - 12:51 PM
Yeah well I'm not even that far into it so not much of a spoiler. Also I copied this from pastebin, so those showed up for whatever reason.
LordIkol #10
Posted 26 March 2013 - 09:38 PM
pastebin link is not working
jag #11
Posted 26 March 2013 - 10:31 PM
Wait, you see… The best way of doing this is actually close your "OS" instead of stopping it via an error.
Here is an example of closing a running program:

while true do
  x = read()
  if x == "tmp" then
    -- Do something
  elseif x == "exit" then
    break
    -- "break" closes loops
  end
end

This is just an example, there are "unlimited" ways to do this task. But I'd say "error()" is a bad one.
Doyle3694 #12
Posted 27 March 2013 - 04:09 AM
Oh. I thought his intent was to close his program and other programs further down the stack with it.