Skip to content

Add the ability to disable the detach key with ZMX_NO_DETACH_KEY#189

Open
varun-qumulo wants to merge 1 commit into
neurosnap:mainfrom
varun-qumulo:detach-key-opt-out
Open

Add the ability to disable the detach key with ZMX_NO_DETACH_KEY#189
varun-qumulo wants to merge 1 commit into
neurosnap:mainfrom
varun-qumulo:detach-key-opt-out

Conversation

@varun-qumulo

Copy link
Copy Markdown

I use ctrl+\ ctrl+n in vim to escape its integrated terminal - this doesn't play nice with zmx.

This PR adds ZMX_NO_DETACH_KEY which can be set to disable zmx's ctrl+\ key handling.

I tested this on linux-x86_64 with Ghostty.

ctrl+\ as the detach key is hardcoded with no way to opt out, which
conflicts with programs that use it themselves (e.g. vim's ctrl+\
ctrl+n to escape its own :terminal). Since the byte is intercepted in
the client's input loop before it ever reaches the remote PTY, no
remapping on the inner program's side can work around it.

Setting ZMX_NO_DETACH_KEY (to any value) skips the ctrl+\ intercept so
it passes through as normal input; zmx detach or closing the window
still work as usual.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant