psysh icon indicating copy to clipboard operation
psysh copied to clipboard

Possibility to cancel long running operations with Ctrl-C

Open Markcial opened this issue 10 years ago • 5 comments

When calling long time running operations a nice feature could be the chance to cancel that operation without exiting from the shell, it can be done with Ctrl-C or any signal that will tell the shell it have to kill the spawned worker but not the main thread, for then creating a new worker with the state from the main worker, like the savegame function but with rollback.

Markcial avatar Feb 18 '15 08:02 Markcial

:+1: Yes, let's :)

bobthecow avatar Feb 23 '15 18:02 bobthecow

Experiment in development here => https://github.com/bobthecow/psysh/pull/163

Markcial avatar Feb 24 '15 14:02 Markcial

..would this have the happy side-effect of dropping back to the prompt instead of quitting, or should I open a new ticket for that?

eode avatar Jun 01 '16 20:06 eode

So whats the progress or alternative to this? Do we have any workaround than Ctrl + C?

sehgal10 avatar Oct 15 '18 07:10 sehgal10

Not right now, but pull requests are welcome :)

bobthecow avatar Oct 20 '18 16:10 bobthecow