claude-code - 💡(How to fix) Fix Support Shift+Enter multi-line input in foot terminal [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#45370Fetched 2026-04-09 08:07:00
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
labeled ×3commented ×1

/terminal-setup does not recognize foot as a supported terminal for the Shift+Enter multi-line shortcut. However, foot already sends a distinct escape sequence for Shift+Enter: \e[27;2;13~ (modifyOtherKeys encoding: modifier 2 = Shift, key 13 = Enter).

Root Cause

/terminal-setup does not recognize foot as a supported terminal for the Shift+Enter multi-line shortcut. However, foot already sends a distinct escape sequence for Shift+Enter: \e[27;2;13~ (modifyOtherKeys encoding: modifier 2 = Shift, key 13 = Enter).

RAW_BUFFERClick to expand / collapse

Summary

/terminal-setup does not recognize foot as a supported terminal for the Shift+Enter multi-line shortcut. However, foot already sends a distinct escape sequence for Shift+Enter: \e[27;2;13~ (modifyOtherKeys encoding: modifier 2 = Shift, key 13 = Enter).

Current behavior

Running /terminal-setup inside foot (via tmux or directly) does not list foot as a supported terminal. The message says:

iTerm2, WezTerm, Ghostty, Kitty, and Warp support Shift+Enter natively.

foot is not mentioned, even though it sends a unique sequence for Shift+Enter.

Expected behavior

Claude Code should recognize foot's \e[27;2;13~ Shift+Enter sequence and allow multi-line input, the same way it does for other terminals that send distinct Shift+Enter sequences.

Environment

  • Terminal: foot 1.21.0
  • Platform: Linux (Arch, sway)
  • Shell: fish

extent analysis

TL;DR

Update the terminal setup to recognize foot's Shift+Enter escape sequence \e[27;2;13~ as a supported terminal for multi-line input.

Guidance

  • Verify that the escape sequence sent by foot is correctly interpreted by the /terminal-setup command.
  • Check if there are any configuration options or environment variables that can be set to add support for foot's Shift+Enter sequence.
  • Investigate if there are any existing issues or pull requests related to adding support for foot terminal in the Claude Code repository.
  • Test if manually adding foot to the list of supported terminals in the /terminal-setup command resolves the issue.

Example

No code snippet is provided as it is not explicitly mentioned in the issue.

Notes

The solution may require updates to the /terminal-setup command or the Claude Code configuration to recognize foot's Shift+Enter sequence.

Recommendation

Apply workaround: manually add foot to the list of supported terminals in the /terminal-setup command, as it is likely that the issue is due to a missing configuration or recognition of foot's escape sequence.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Claude Code should recognize foot's \e[27;2;13~ Shift+Enter sequence and allow multi-line input, the same way it does for other terminals that send distinct Shift+Enter sequences.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Support Shift+Enter multi-line input in foot terminal [1 comments, 2 participants]