Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Honor ^c in Pry and ask for ^c*2 to exit. #376

Closed
envygeeks opened this Issue · 1 comment

3 participants

@envygeeks
[1] guard(main)> require "uri" #=> true
[2] guard(main)> URI.parse('https://example.com")
01:57:13 - INFO - Bye bye...

Or give us an option to enable a ^c2 that way if we take advantage of the REPL we aren't taken by surprise when we are kicked out of guard and Pry when we screw up and try to exit out of the continuation with ^c. Edit: *I mean I could always remap ^c in Pry and Guard but it would be nice to have the option.

@thibaudgg
Owner

Seems like a good thing to add, can you submit a pull request please? Thanks!

@netzpirat netzpirat closed this issue from a commit
@netzpirat netzpirat Review thread and interrupt handling.
This changes the thread coordination of Guard/Listen/interactor
by using Listen in non-blocking mode. This should fix some
thread issues on 1.8.7, at least I cannot reproduce it anymore.
 (Closes #360)

 In addition the signal handling was changed: If the Pry interactor
 is used, then Ctrl-C is delegated to Pry to exit continuation and
 Ctrl-D to exit Guard. Without interactor, Ctrl-C exists Guard and
 Ctrl-D is ignored. (Closes #376)
eab78f7
@netzpirat netzpirat closed this in eab78f7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.