Skip to content

BUG: C-p C-q should 'detach' from the container #291

@d11wtq

Description

@d11wtq

Docker handles the key sequence C-p C-q as a way of detaching from the running container if you're inside a PTY. This means it closes the PTY, but leaves the container running, so you can re-attach later.

Currently if you do that in fig, you'll appear to have 'locked' your terminal until you press Ctrl-C. This is because fig includes a call to client.wait(container), which will wait indefinitely on a detached session.

I'm not 100% what the correct approach is to fix this. I'm just documenting the issue and pointing to where the problem is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions