Skip to content

Sending single key to the shell when with a modified #3502

Closed Answered by 00-kat
liaowang11 asked this question in Feature Requests, Ideas
Discussion options

You must be logged in to vote

Ohh apologies I misinterpreted.

So for some context: ctrl+[ and escape encode to the same thing, and Fish binds escape to exit insert mode but doesn't bind ctrl+[ to escape insert mode. But since they encode to the same thing, Fish reads ctrl+[ as escape. Ghostty implements fixterms, which changes the two encodings to something different. Fish since version 4 supports fixterms so it interprets that weird \e\[91\;5u thing (A.K.A. a CSI-u encoded key sequence) as ctrl+[, which is correct, but you actually want it to be interpreted as escape, and hence escape insert mode.

So the following solutions are possible:

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@00-kat
Comment options

@liaowang11
Comment options

@00-kat
Comment options

Answer selected by pluiedev
@liaowang11
Comment options

@liaowang11
Comment options

@00-kat
Comment options

@liaowang11
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #3346 on December 27, 2024 17:23.