-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow use of CTRL-Z #16
Comments
Do you have a signal handler installed? https://github.com/nats-io/gnatsd/blob/master/server/server.go#L146 |
The issue seems to be that the termui+termbox dependency which I added uses raw terminal input mode and also handles the signals instead, that is why they are ended up being disabled: https://github.com/nsf/termbox-go/blob/9914d1c528437633580e9aeda764bfb8c1415a9a/api.go#L305 |
Raw terminal mode just means no key bindings. From what I see, termbox is On Wed, Sep 16, 2015 at 10:56 PM, Waldemar Quevedo <notifications@github.com
Larry McQueary | Director, Messaging Technology |
If you do that, you might want to also handle SIGINT. I notice that top(1) On Thu, Sep 17, 2015 at 12:27 PM, Larry McQueary larry@apcera.com wrote:
Larry McQueary | Director, Messaging Technology |
Thanks @mcqueary . Yes the issue seems to be that termbox is disabling |
Ah -- good thing I included that caveat ;) Nice work. On Thu, Sep 17, 2015 at 1:40 PM, Waldemar Quevedo notifications@github.com
|
Looked a bit into this one, and fix seems to be more involved than I thought. It is possible to allow suspending a process, but once the process resumes I should be handling |
@wallyqs did you ever implement this? |
Haven't, though maybe possible to do so now since looks like |
It seems the framework is making it not possible to respond to some signals.
The text was updated successfully, but these errors were encountered: