Jump to content




MultiShell program exit?



  • You cannot reply to this topic
10 replies to this topic

#1 TheJebForge

  • Members
  • 128 posts

Posted 13 January 2015 - 07:21 PM

I'm working on custom multishell (just editing needed lines) and I want to add the X button...
I forgot... How to terminate tab?

#2 InDieTasten

  • Members
  • 357 posts
  • LocationGermany

Posted 13 January 2015 - 07:33 PM

View PostTheJebForge, on 13 January 2015 - 07:21 PM, said:

I'm working on custom multishell (just editing needed lines) and I want to add the X button...
I forgot... How to terminate tab?
Not sure what you mean, but I guess Ctrl + T for one sec would do the job?

#3 TheJebForge

  • Members
  • 128 posts

Posted 13 January 2015 - 07:38 PM

I mean how to terminate the tab without using the buttons. Do that with code.

#4 Quintuple Agent

  • Members
  • 107 posts
  • LocationThis page

Posted 13 January 2015 - 07:41 PM

I have never really gotten around to using multishell, but I think you could use shell.exit()

#5 MKlegoman357

  • Members
  • 1,170 posts
  • LocationKaunas, Lithuania

Posted 13 January 2015 - 07:46 PM

Just don't resume the coroutines anymore.

#6 TheJebForge

  • Members
  • 128 posts

Posted 13 January 2015 - 07:48 PM

Ohh! I can just copy the piece of terminate thing! But anyway, multishell does so! Thanks)

#7 TheJebForge

  • Members
  • 128 posts

Posted 14 January 2015 - 07:40 PM

How can I kill the coroutine. And the state must be dead. Pleasee heelp

#8 MKlegoman357

  • Members
  • 1,170 posts
  • LocationKaunas, Lithuania

Posted 14 January 2015 - 07:46 PM

Short answer - you can't. Long answer - the function the coroutine is running must stop by itself, by either ending or erroring. If you are dealing with a ComputerCraft coroutine system (the main event system, like multishell and parallel API) you can just not resume the coroutine anymore. You could tell us what exactly you are trying to achieve so we could give you a better answer.

Edited by MKlegoman357, 14 January 2015 - 07:46 PM.


#9 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 14 January 2015 - 07:48 PM

Threads merged. If you control the coroutine manager, you don't need to make the status be dead. Just remove it from the group of coroutines that you resume. If there aren't any other references to it, it will be garbage collected shortly thereafter.

Or you could try tricking it into calling error.

#10 TheJebForge

  • Members
  • 128 posts

Posted 14 January 2015 - 09:10 PM

I'm making the custom multishell script... And... to make a task manager I must have the stopProgress() function. But stop... I have an idea! I'll tell if that idea will work!

#11 TheJebForge

  • Members
  • 128 posts

Posted 15 January 2015 - 04:26 PM

Please help... I'm editing the multishell api and how to delete process and passing towards the cullProcess(n)

Ohh never mind ! I have found the error!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users