Answer: Add these lines to `~/.tmux.conf`, then run `tmux source-file ~/.tmux.conf` to apply them to the running server: `set -g allow-passthrough on`, `set -g focus-events on`, `set -s extended-keys on`, and `set -as terminal-features 'xterm*:extkeys'`. To use Shift+Enter, keep the last two lines, then detach from tmux, attach again, and restart Claude Code. Status: Confirmed Entry: tool/claude-code/troubleshooting/configure-tmux Revision: 2 Digest: sha256:ce10b65a5ca86f0c (changes whenever the content changes) Timeline: Created: 2026-11-13T03:05:59Z Last changed: 2026-11-18T12:20:45Z (Shift+Enter steps: — → keep the last two lines, then detach from tmux, attach again, and restart Claude Code) Last verified: 2026-11-20T12:25:51Z Next check: 2026-11-21T12:25:51Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of config file | ~/.tmux.conf | [1] | 2026-11-20 apply command | tmux source-file ~/.tmux.conf | [1] | 2026-11-20 allow-passthrough setting | set -g allow-passthrough on | [1] | 2026-11-20 focus-events setting | set -g focus-events on | [1] | 2026-11-20 extended-keys setting | set -s extended-keys on | [1] | 2026-11-20 terminal-features setting | set -as terminal-features 'xterm*:extkeys' | [1] | 2026-11-20 Shift+Enter steps | keep the last two lines, then detach from tmux, attach again, and restart Claude Code | [1] | 2026-11-20 Sources: [1] Anthropic. "Configure your terminal for Claude Code". https://code.claude.com/docs/en/terminal-config.md Role: primary. Accessed: 2026-11-20T12:25:51Z Quote: "Add these lines to `~/.tmux.conf`" (Supports: config file) Quote: "then run `tmux source-file ~/.tmux.conf` to apply them to the running server" (Supports: apply command) Quote: "set -g allow-passthrough on" (Supports: allow-passthrough setting) Quote: "set -g focus-events on" (Supports: focus-events setting) Quote: "set -s extended-keys on" (Supports: extended-keys setting) Quote: "set -as terminal-features 'xterm*:extkeys'" (Supports: terminal-features setting) Quote: "To use Shift+Enter, keep the last two lines, then detach from tmux, attach again, and restart Claude Code." (Supports: Shift+Enter steps) Published: 2026-11-20T02:55:45Z Snapshot SHA-256: cbeb76e3cc6c1db8ce74eb431985bffa185f5fb6a3c5dfb98b893ba60f8728fd (captured 2026-11-20T12:25:47Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. Cross-check: not-available at 2026-11-20T12:25:51Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:25:51Z Last attempt: 2026-11-20T12:25:51Z Notes and limitations: Extracted automatically from a single official source (section "Configure tmux"). Related: https://latestn.com/tool/claude-code/troubleshooting/confirm-hipaa-configuration How do I confirm the HIPAA configuration is applied on a developer's computer? https://latestn.com/tool/claude-code/troubleshooting/costs-on-failures-and-crashes How do I track costs on failed conversations or recover totals after a session crash in the Claude Agent SDK? https://latestn.com/tool/claude-code/troubleshooting/cross-session-messaging-availability What Claude Code versions and platforms are required for cross-session messaging? https://latestn.com/tool/claude-code/troubleshooting/beta-header-pass-through What happens in Claude Code when a gateway strips beta headers or body fields? https://latestn.com/tool/claude-code/troubleshooting/check-cache-performance How can I check Claude Code's cache hit rate or cache performance? https://latestn.com/tool/claude-code/troubleshooting/check-loaded-context How do I check which CLAUDE.md, settings, hooks, or MCP servers actually loaded in Claude Code? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-18T12:20:45Z | changed | Shift+Enter steps: — → keep the last two lines, then detach from tmux, attach again, and restart Claude Code | [1] 2026-11-18T12:20:45Z | changed | post-config steps: detach from tmux, attach again, and restart Claude Code → — | [1] 2026-11-13T03:05:59Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/troubleshooting/configure-tmux/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/troubleshooting/configure-tmux POST: https://latestn.com/dispute/tool/claude-code/troubleshooting/configure-tmux with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/troubleshooting/configure-tmux?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I configure Claude Code to work properly inside tmux? Revision 2, last verified 2026-11-20T12:25:51Z. https://latestn.com/tool/claude-code/troubleshooting/configure-tmux (accessed 2026-11-21T09:57:14Z). @misc{LatestN_tool_claude_code_troubleshooting_configure_tmux_r2, title = {How do I configure Claude Code to work properly inside tmux?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/troubleshooting/configure-tmux}}, note = {Revision 2; digest sha256:ce10b65a5ca86f0c; last verified 2026-11-20T12:25:51Z; accessed 2026-11-21T09:57:14Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/troubleshooting/configure-tmux