claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] Detect fixterm representations or Detect KKP

Open rhodes-b opened this issue 7 months ago • 4 comments

Environment

  • Platform (select one): unknown - im reporting this on behalf of a ghostty user
  • Terminal: Ghostty

Bug Description

claude code does not recognize fixterm key encodings and spits the fixterm encoding into the input box this is very unintuitve for users

Steps to Reproduce

Use ghostty and use a keybind with a modifier so it will have a fixterm representation (ghostty uses fixterm by default users have to override the keybind manually) shift + enter to do a newline in the prompt is a easy way to achieve this

Expected Behavior

newline in prompt

Actual Behavior

fixterm encoding is thrown into input box

Additional Context

https://www.leonerd.org.uk/hacks/fixterms/

Kitty keyboard protocol support would also solve this problem https://sw.kovidgoyal.net/kitty/keyboard-protocol/

rhodes-b avatar Aug 20 '25 14:08 rhodes-b

Found 2 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/1282
  2. https://github.com/anthropics/claude-code/issues/5757

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

github-actions[bot] avatar Aug 20 '25 14:08 github-actions[bot]

Yup I found the duplicate, very surprising its just been sitting for months. I dont know what /terminal-setup does but you can detect KKP https://sw.kovidgoyal.net/kitty/keyboard-protocol/#detection-of-support-for-this-protocol

which should absolutely not require some hacky command users just have to know to run

rhodes-b avatar Aug 20 '25 14:08 rhodes-b

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

github-actions[bot] avatar Dec 04 '25 10:12 github-actions[bot]

still an issue

pzmarzly avatar Dec 05 '25 14:12 pzmarzly