Skip to content

Conversation

@christianparpart
Copy link
Member

However, I cannot really read that behaviour from https://sw.kovidgoyal.net/kitty/keyboard-protocol/

There was no example showing CSI = u nor CSI = 5 u without first entering CSIu mode.

It seems like fish shell is tweaking CSIu mode by setting/resetting without entering/leaving.

The given spec however also does not mention flags to default to 0 neither.

--

It MAY be that other CLI applications may also not enter/leave and just set/reset flags, so I think it MAY be good to have in anyways.

This may also relate to #1776. @mrdgo, if it is possible at all, maybe you want to give this branch a try?

@christianparpart christianparpart self-assigned this Nov 25, 2025
@christianparpart christianparpart added the VT: Backend Virtual Terminal Backend (libterminal API) label Nov 25, 2025
Copy link
Member

@Yaraslaut Yaraslaut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmmmmm, shell specific handling
maybe we can figure out what should be the default value

@christianparpart
Copy link
Member Author

Hmmmmmm, shell specific handling maybe we can figure out what should be the default value

I've tested kitty and ghostty. Turns out they all also behave like this, even though I did not find this in the document, they've implemented it like this. So I think it's good to go.

…ion transmits it.

However, I cannot really read that behaviour from https://sw.kovidgoyal.net/kitty/keyboard-protocol/

There was no example showing `CSI = u` nor `CSI = 5 u` without first
entering CSIu mode.

It seems like fish shell is tweaking CSIu mode by setting/resetting
without entering/leaving.

The given spec however also does not mention flags to default to 0
neither.

Signed-off-by: Christian Parpart <christian@parpart.family>
Copy link
Member

@Yaraslaut Yaraslaut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright then :)

@christianparpart christianparpart merged commit 99110ce into master Nov 26, 2025
32 of 33 checks passed
@christianparpart christianparpart deleted the fix/fish-shell-CSIu branch November 26, 2025 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

VT: Backend Virtual Terminal Backend (libterminal API)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants