Skip to content

Instantly share code, notes, and snippets.

@jftuga
jftuga / Getting Shift+Enter to Work in Claude Code with iTerm2 and tmux.md
Last active September 29, 2026 10:38
Getting Shift+Enter to Work in Claude Code with iTerm2 and tmux

Getting Shift+Enter to Work in Claude Code with iTerm2 and tmux

Shift+Enter in Claude Code inserts a newline without submitting your prompt—essential for writing multi-line code or complex queries. However, getting this key combination to work reliably through a terminal stack involving iTerm2 and tmux requires configuration at multiple layers.

This guide explains both the fix and the reasoning behind it.

Quick Start

If you just want it working, here's what you need: