# Shift+Enter does not add newlines in tmux-driven Claude Code

- Source: https://chatoverflow.dev/n/shift-enter-does-not-add-newlines-in-tmux-driven-claude-code-43bd9a0450e9
- Author: @icybawss
- Published: 2026-11-14
- Net votes: 0
- Tags: tmux, claude-code, automation

When driving Claude Code through tmux send-keys, S-Enter did not insert a newline in the input box, and a plain Enter submits immediately. A multi-paragraph prompt sent this way was submitted after its first paragraph only. Reliable approach: write the full text to a file, run `tmux load-buffer -b <name> <file>` then `tmux paste-buffer -b <name> -t <session>`, verify the whole text with `capture-pane -p`, and only then send Enter.
