Skip to content
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

Disable detach-keys #396

Closed
wants to merge 0 commits into from
Closed

Conversation

EnigmaCurry
Copy link
Contributor

@EnigmaCurry EnigmaCurry commented Mar 27, 2020

This fixes the problem of not being able to use the Ctrl-p shortcut in readline and Emacs. This disables the podman detach-keys (default Ctrl-p, Ctrl-q). Without this, things like bash readline, and Emacs suffer from not being able to use Ctrl-p key.

I don't know if there is any good reason to actually enable detach keys when using toolbox. If so, then this should be made configurable somehow, but I thought I would share my fix regardless. Thanks!

This fixes #394

@softwarefactory-project-zuul
Copy link

Build failed.

@HarryMichal HarryMichal requested a review from debarshiray April 24, 2020 09:51
@HarryMichal HarryMichal added this to the Release 0.1.0 milestone Jul 28, 2020
@HarryMichal HarryMichal added 3. Enhancement Improvement to an existing feature 6. Minor Change Should not cause breakage labels Jul 28, 2020
HarryMichal pushed a commit to HarryMichal/toolbox that referenced this pull request Jul 28, 2020
Podman sets keys 'ctrl-p' and 'ctrl-q' as the default detach keys. This
behaviour is not desirable in Toolbox. Since Podman v1.8.2[0] it is
possible to have set no detach keys by passing an empty string to the
--detach-keys option.

Thanks to this the 'Ctrl+p' and 'Ctrl-q' combinations are doing what
they should do normally in a terminal.

[0] containers/podman#5203

Fixes: containers#394

containers#396
HarryMichal pushed a commit to HarryMichal/toolbox that referenced this pull request Jul 28, 2020
Podman sets keys 'ctrl-p' and 'ctrl-q' as the default detach keys. This
behaviour is not desirable in Toolbox. Since Podman v1.8.2[0] it is
possible to have set no detach keys by passing an empty string to the
--detach-keys option.

Thanks to this the 'Ctrl+p' and 'Ctrl-q' combinations are doing what
they should do normally in a terminal.

[0] containers/podman#5203

Fixes: containers#394

containers#396
@HarryMichal
Copy link
Member

Hi @EnigmaCurry! I apologize for prematurely closing your PR. I wanted to update it to make it work with the latest version of Toolbox (it has been rewritten in Go) but I messed up. I'll open a new PR from my branch where I have your original commit that I've updated. You're still it's original author, so git statistics magic should give the credit to you :).

Thank you for your work!

HarryMichal pushed a commit to HarryMichal/toolbox that referenced this pull request Jul 28, 2020
Podman sets keys 'ctrl-p' and 'ctrl-q' as the default detach keys. This
behaviour is not desirable in Toolbox. Since Podman v1.8.2[0] it is
possible to have set no detach keys by passing an empty string to the
--detach-keys option.

Thanks to this the 'Ctrl+p' and 'Ctrl-q' combinations are doing what
they should do normally in a terminal.

[0] containers/podman#5203

Fixes: containers#394

containers#396
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. Enhancement Improvement to an existing feature 6. Minor Change Should not cause breakage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Being in a toolbox breaks Ctrl-p for readline
2 participants